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
new migration to add indexes and fields for OCR
matthew-heartfulaf068dc56487
diff --git a/screenpipe-server/src/migrations/20240716120000_add_fields_to_ocr_text.sql b/screenpipe-server/src/migrations/20240716120000_add_fields_to_ocr_text.sqlnew file mode 100644index 000000000..1a7103bf9--- /dev/null+++ b/screenpipe-server/src/migrations/20240716120000_add_fields_to_ocr_text.sql@@ -0,0 +1,13 @@+-- Add new columns to the ocr_text table+ALTER TABLE ocr_text ADD COLUMN Tesseract_TSV_object TEXT;+ALTER TABLE ocr_text ADD COLUMN unique_text_lines_24hr TEXT;+ALTER TABLE ocr_text ADD COLUMN unique_text_lines_1hr TEXT;+ALTER TABLE ocr_text ADD COLUMN unique_text_lines_1m TEXT;+ALTER TABLE ocr_text ADD COLUMN diff_vs_previous_frame_by_line TEXT;++-- Create indices for the new columns+CREATE INDEX IF NOT EXISTS idx_ocr_text_Tesseract_TSV_object ON ocr_text(Tesseract_TSV_object);+CREATE INDEX IF NOT EXISTS idx_ocr_text_unique_text_lines_24hr ON ocr_text(unique_text_lines_24hr);+CREATE INDEX IF NOT EXISTS idx_ocr_text_unique_text_lines_1hr ON ocr_text(unique_text_lines_1hr);+CREATE INDEX IF NOT EXISTS idx_ocr_text_unique_text_lines_1m ON ocr_text(unique_text_lines_1m);+CREATE INDEX IF NOT EXISTS idx_ocr_text_diff_vs_previous_frame_by_line ON ocr_text(diff_vs_previous_frame_by_line);\ No newline at end of file