amélrioration

This commit is contained in:
ocroguennec committed 2026-06-18 21:45:05 +02:00
1 parent fea1d787ca
commit b2e73b4fe7
3 files changed
+249 -31

No files matched your search

+9
View File
@@ -2003,4 +2003,13 @@ console.log('[DB] Migrations 2FA OK');
}
}
{
// Migration : assigned_to sur tickets
const cols = db.prepare("PRAGMA table_info(tickets)").all().map(c => c.name);
if (!cols.includes('assigned_to')) {
db.exec("ALTER TABLE tickets ADD COLUMN assigned_to INTEGER REFERENCES users(id) ON DELETE SET NULL");
console.log('[DB] tickets: colonne assigned_to ajoutée');
}
}
export default db;