1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-26 09:27:30 +00:00

Fixup stored instance settings

This commit is contained in:
Cadence Ember 2021-02-06 20:06:55 +13:00
parent 7c31d04055
commit 58a74e1302
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -33,6 +33,11 @@ const deltas = [
function() { function() {
db.prepare("CREATE TABLE WatchedVideos (token TEXT NOT NULL, videoID TEXT NOT NULL, PRIMARY KEY (token, videoID))") db.prepare("CREATE TABLE WatchedVideos (token TEXT NOT NULL, videoID TEXT NOT NULL, PRIMARY KEY (token, videoID))")
.run() .run()
},
// 4: Fixup stored instance settings
function() {
db.prepare("UPDATE Settings SET instance = REPLACE(REPLACE(instance, '/', ''), ':', '://') WHERE instance LIKE '%/'")
.run()
} }
] ]