feat: add completion_date field to projects and update related functionalities in forms and queries

This commit is contained in:
2025-11-14 10:01:49 +01:00
parent 6b205f36bb
commit 9b1f42c4ec
5 changed files with 71 additions and 4 deletions

View File

@@ -27,6 +27,7 @@ export default function initializeDatabase() {
city TEXT,
investment_number TEXT,
finish_date TEXT,
completion_date TEXT,
wp TEXT,
contact TEXT,
notes TEXT,
@@ -280,6 +281,14 @@ export default function initializeDatabase() {
// Column already exists, ignore error
}
try {
db.exec(`
ALTER TABLE projects ADD COLUMN completion_date TEXT;
`);
} catch (e) {
// Column already exists, ignore error
}
// Migration: Update task status system - add 'not_started' status
// DISABLED: This migration was running on every init and converting legitimate
// 'pending' tasks back to 'not_started'. The initial migration has been completed.