feat: track received image outcomes

This commit is contained in:
jjbrunton committed 2026-08-08 18:53:11 +01:00
1 parent 50de1c180d
commit d819a0f1e6
15 files changed
+145 -21

No files matched your search

+6
View File
@@ -192,6 +192,12 @@ export function runMigrations(db: Database.Database): void {
updated_at INTEGER NOT NULL
);
`),
() => {
addColumnIfNotExists(db, 'sent_messages', 'got_image', 'INTEGER NOT NULL DEFAULT 0');
db.exec(`
CREATE INDEX IF NOT EXISTS idx_sent_messages_image ON sent_messages(got_image);
`);
},
];
let currentVersion = db.pragma('user_version', { simple: true }) as number;