feat: add 'not_started' task status with updates to task creation, status handling, and translations

This commit is contained in:
2025-10-09 12:39:43 +02:00
parent 33c5466d77
commit 1288fe1cf8
4 changed files with 29 additions and 26 deletions

View File

@@ -280,16 +280,18 @@ export default function initializeDatabase() {
}
// Migration: Update task status system - add 'not_started' status
try {
// First, update all existing 'pending' tasks to 'not_started'
db.exec(`
UPDATE project_tasks SET status = 'not_started' WHERE status = 'pending';
`);
// Note: CHECK constraint will be applied when recreating the table in future migrations
// For now, we'll rely on application-level validation
} catch (e) {
// Migration already done, ignore error
}
// DISABLED: This migration was running on every init and converting legitimate
// 'pending' tasks back to 'not_started'. The initial migration has been completed.
// try {
// // First, update all existing 'pending' tasks to 'not_started'
// db.exec(`
// UPDATE project_tasks SET status = 'not_started' WHERE status = 'pending';
// `);
// // Note: CHECK constraint will be applied when recreating the table in future migrations
// // For now, we'll rely on application-level validation
// } catch (e) {
// // Migration already done, ignore error
// }
// Create indexes for notes user tracking
try {