mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2025-12-03 02:56:31 +00:00
Fixup stored instance settings
This commit is contained in:
parent
7c31d04055
commit
58a74e1302
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue