Support File Move Operations with Watcher Refactor for Accurate Tracking

This commit is contained in:
aditya.chandel
2025-07-04 11:19:23 -06:00
committed by Aditya Chandel
parent 1c9c09628a
commit 841e359b92
73 changed files with 3714 additions and 852 deletions
@@ -0,0 +1,10 @@
ALTER TABLE book
ADD COLUMN initial_hash TEXT,
ADD COLUMN current_hash TEXT,
ADD COLUMN deleted BOOLEAN DEFAULT FALSE,
ADD COLUMN deleted_at TIMESTAMP;
CREATE INDEX IF NOT EXISTS idx_book_initial_hash ON book(initial_hash(255));
CREATE INDEX IF NOT EXISTS idx_book_current_hash ON book(current_hash(255));
CREATE INDEX IF NOT EXISTS idx_book_deleted ON book(deleted);
CREATE INDEX IF NOT EXISTS idx_book_deleted_at ON book(deleted_at);