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:
parent
7c31d04055
commit
58a74e1302
@ -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()
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user