feat: Add is_system column to notes and update task note handling for system notes
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user