feat(caldav): add token_hash column and store SHA-256 hashed tokens
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m27s
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m27s
This commit is contained in:
@@ -679,6 +679,12 @@ export async function initDatabase() {
|
||||
`);
|
||||
}
|
||||
|
||||
// CalDAV: add token_hash column for SHA-256 hashed token lookup
|
||||
if (!(await db.columnExists('caldav_tokens', 'token_hash'))) {
|
||||
await db.exec('ALTER TABLE caldav_tokens ADD COLUMN token_hash TEXT DEFAULT NULL');
|
||||
await db.exec('CREATE INDEX IF NOT EXISTS idx_caldav_tokens_hash ON caldav_tokens(token_hash)');
|
||||
}
|
||||
|
||||
// ── OAuth tables ────────────────────────────────────────────────────────
|
||||
if (isPostgres) {
|
||||
await db.exec(`
|
||||
|
||||
Reference in New Issue
Block a user