This commit is contained in:
Stefan ATZLESBERGER
2026-04-16 16:05:22 +02:00
parent 14ed445328
commit c2b20a9f10
11 changed files with 326 additions and 14 deletions
+6
View File
@@ -44,6 +44,12 @@ function migrate(database: Database) {
}
database.run(`CREATE INDEX IF NOT EXISTS idx_tag_tree_parent ON tag_tree_nodes(parent_id);`);
database.run(`CREATE INDEX IF NOT EXISTS idx_snippets_updated ON snippets(updated_at);`);
try {
database.run(`ALTER TABLE snippets ADD COLUMN deadline_at TEXT`);
} catch {
/* Spalte existiert bereits */
}
database.run(`CREATE INDEX IF NOT EXISTS idx_snippets_deadline ON snippets(deadline_at);`);
}
export function getDb(): Database {