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
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m59s
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user