feat: add 'not_started' task status with updates to task creation, status handling, and translations
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user