feat(database): update reminder_sent_at column type for calendar_events based on database type
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m59s

This commit is contained in:
2026-03-04 10:33:55 +01:00
parent 0d84610e3b
commit a69b2e4d9a

View File

@@ -517,7 +517,7 @@ export async function initDatabase() {
await db.exec('ALTER TABLE calendar_events ADD COLUMN reminder_minutes INTEGER DEFAULT NULL'); await db.exec('ALTER TABLE calendar_events ADD COLUMN reminder_minutes INTEGER DEFAULT NULL');
} }
if (!(await db.columnExists('calendar_events', 'reminder_sent_at'))) { if (!(await db.columnExists('calendar_events', 'reminder_sent_at'))) {
await db.exec('ALTER TABLE calendar_events ADD COLUMN reminder_sent_at DATETIME DEFAULT NULL'); await db.exec(`ALTER TABLE calendar_events ADD COLUMN reminder_sent_at ${isPostgres ? 'TIMESTAMP' : 'DATETIME'} DEFAULT NULL`);
} }
// Calendar invitations (federated calendar events that must be accepted first) // Calendar invitations (federated calendar events that must be accepted first)