YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
removed unused fields
matthew-heartful462356925def
diff --git a/screenpipe-server/src/migrations/20240808120009_remove_columns_from_ocr_text.sql b/screenpipe-server/src/migrations/20240808120009_remove_columns_from_ocr_text.sqlnew file mode 100644index 000000000..912c719a4--- /dev/null+++ b/screenpipe-server/src/migrations/20240808120009_remove_columns_from_ocr_text.sql@@ -0,0 +1,28 @@+-- Add to the "up" migration+PRAGMA foreign_keys=off;++-- Create a new table with the desired structure+CREATE TABLE IF NOT EXISTS ocr_text_new (+ frame_id INTEGER NOT NULL,+ text TEXT NOT NULL,+ text_json TEXT,+ app_name TEXT NOT NULL DEFAULT '',+ ocr_engine TEXT NOT NULL DEFAULT 'unknown'+);++-- Copy data from the old table to the new table+INSERT INTO ocr_text_new (frame_id, text, text_json, app_name, ocr_engine)+SELECT frame_id, text, text_json, app_name, ocr_engine+FROM ocr_text;++-- Drop the old table+DROP TABLE IF EXISTS ocr_text;++-- Rename the new table to the original name+ALTER TABLE ocr_text_new RENAME TO ocr_text;++-- Recreate any indexes or triggers on the new table if needed+-- For example:+-- CREATE INDEX IF NOT EXISTS idx_ocr_text_frame_id ON ocr_text(frame_id);++PRAGMA foreign_keys=on;\ No newline at end of file