1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-12-18 12:08:48 +00:00

CSRF and various enhancements

This commit is contained in:
Cadence Ember
2020-05-10 03:20:13 +12:00
parent 270a662c75
commit 47cc40bc5a
10 changed files with 95 additions and 26 deletions

View File

@@ -85,6 +85,15 @@ const deltas = new Map([
db.prepare("ALTER TABLE UserSettings ADD COLUMN rewrite_twitter TEXT NOT NULL DEFAULT ''")
.run()
})()
}],
// version 6 to version 7
[7, function() {
db.transaction(() => {
db.prepare("DROP TABLE IF EXISTS CSRFTokens")
.run()
db.prepare("CREATE TABLE CSRFTokens (token TEXT NOT NULL, expires INTEGER NOT NULL, PRIMARY KEY (token))")
.run()
})()
}]
])