Merge flyway v78 into v77

This commit is contained in:
acx10
2025-12-20 22:24:14 -07:00
parent 645234e66f
commit b12fc82414
2 changed files with 10 additions and 7 deletions

View File

@@ -6,4 +6,9 @@ ALTER TABLE book_marks
ADD COLUMN version BIGINT NOT NULL DEFAULT 1;
-- Update existing records
UPDATE book_marks SET updated_at = created_at WHERE updated_at IS NULL;
UPDATE book_marks
SET updated_at = created_at
WHERE updated_at IS NULL;
CREATE INDEX idx_bookmark_book_user_priority
ON book_marks (book_id, user_id, priority, created_at);

View File

@@ -1,2 +0,0 @@
CREATE INDEX idx_bookmark_book_user_priority
ON book_marks(book_id, user_id, priority, created_at);