From a69b2e4d9a6a03589cf85f15c60fa5ae21be7957 Mon Sep 17 00:00:00 2001 From: Michelle Date: Wed, 4 Mar 2026 10:33:55 +0100 Subject: [PATCH] feat(database): update reminder_sent_at column type for calendar_events based on database type --- server/config/database.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/config/database.js b/server/config/database.js index 4d8ca55..747d3be 100644 --- a/server/config/database.js +++ b/server/config/database.js @@ -517,7 +517,7 @@ export async function initDatabase() { await db.exec('ALTER TABLE calendar_events ADD COLUMN reminder_minutes INTEGER DEFAULT NULL'); } 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)