some fixes

This commit is contained in:
jubnl
2026-03-30 06:59:24 +02:00
parent 7b2d45665c
commit 153b7f64b7
20 changed files with 659 additions and 65 deletions

View File

@@ -350,6 +350,11 @@ function runMigrations(db: Database.Database): void {
db.prepare("UPDATE addons SET type = 'integration' WHERE id = 'mcp'").run();
} catch {}
},
// Migration 48: Make mcp_tokens.token_hash unique
() => db.exec(`
DROP INDEX IF EXISTS idx_mcp_tokens_hash;
CREATE UNIQUE INDEX idx_mcp_tokens_hash ON mcp_tokens(token_hash)
`),
];
if (currentVersion < migrations.length) {