feat: add width, height, duration columns to attachments schema

This commit is contained in:
Jannis Braun
2026-03-21 17:15:09 +01:00
parent 948fa6de5c
commit b74e33b349
3 changed files with 15 additions and 1 deletions
+8
View File
@@ -157,6 +157,14 @@ export function runMigrations(db: Database.Database): void {
{ name: 'show_activity', type: 'INTEGER NOT NULL DEFAULT 1' },
]
},
{
name: 'attachments',
columns: [
{ name: 'width', type: 'INTEGER' },
{ name: 'height', type: 'INTEGER' },
{ name: 'duration', type: 'REAL' },
]
},
// gif_api_key is handled by migrateRenameGifApiKey() — do NOT add it here
// or it will race with the tenor_api_key → gif_api_key rename migration
];