Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: fix migration script for sqlite

Steven79965864883f
diff --git a/store/migration/sqlite/0.24/00__memo.sql b/store/migration/sqlite/0.24/00__memo.sql
index b7eb770d4..262085118 100644
--- a/store/migration/sqlite/0.24/00__memo.sql
+++ b/store/migration/sqlite/0.24/00__memo.sql
@@ -1,6 +1,7 @@
--- Drop deprecated tags column.
-ALTER TABLE memo DROP COLUMN tags;
-
-- Remove deprecated indexes.
+DROP INDEX IF EXISTS idx_memo_tags;
DROP INDEX IF EXISTS idx_memo_content;
-DROP INDEX IF EXISTS idx_memo_visibility;
\ No newline at end of file
+DROP INDEX IF EXISTS idx_memo_visibility;
+
+-- Drop deprecated tags column.
+ALTER TABLE memo DROP COLUMN tags;
\ No newline at end of file