mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-22 15:47:30 +00:00
Fixup stored instance settings
This commit is contained in:
parent
7c31d04055
commit
58a74e1302
@ -33,6 +33,11 @@ const deltas = [
|
||||
function() {
|
||||
db.prepare("CREATE TABLE WatchedVideos (token TEXT NOT NULL, videoID TEXT NOT NULL, PRIMARY KEY (token, videoID))")
|
||||
.run()
|
||||
},
|
||||
// 4: Fixup stored instance settings
|
||||
function() {
|
||||
db.prepare("UPDATE Settings SET instance = REPLACE(REPLACE(instance, '/', ''), ':', '://') WHERE instance LIKE '%/'")
|
||||
.run()
|
||||
}
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user