feat: Add is_system column to notes and update task note handling for system notes

This commit is contained in:
Chop
2025-06-19 22:12:07 +02:00
parent d40af1ff31
commit 3762f2e6f8
5 changed files with 93 additions and 36 deletions

View File

@@ -137,7 +137,6 @@ export default function initializeDatabase() {
} catch (e) {
// Column migration already done or geo_info doesn't exist, ignore error
}
// Migration: Add date_started column to project_tasks table
try {
db.exec(`
@@ -146,4 +145,13 @@ export default function initializeDatabase() {
} catch (e) {
// Column already exists, ignore error
}
// Migration: Add is_system column to notes table
try {
db.exec(`
ALTER TABLE notes ADD COLUMN is_system INTEGER DEFAULT 0;
`);
} catch (e) {
// Column already exists, ignore error
}
}