This commit is contained in:
2026-06-14 22:35:27 +02:00
parent 6f3dc0c05a
commit a6fc9f445f
6 changed files with 55 additions and 154 deletions
+9
View File
@@ -1789,6 +1789,15 @@ db.exec('CREATE INDEX IF NOT EXISTS idx_2fa_dev_uid ON two_fa_trusted_devices(
}
}
// ── Migration : last_seen_at sur two_fa_trusted_devices ──────────────────────
{
const devCols2 = db.prepare('PRAGMA table_info(two_fa_trusted_devices)').all().map(c => c.name);
if (!devCols2.includes('last_seen_at')) {
db.exec('ALTER TABLE two_fa_trusted_devices ADD COLUMN last_seen_at TEXT');
console.log('[DB] two_fa_trusted_devices.last_seen_at ajouté');
}
}
console.log('[DB] Migrations 2FA OK');
export default db;