1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-03-02 02:31:35 +00:00

Add local fetch option

This commit is contained in:
Cadence Ember 2020-10-26 20:29:05 +13:00
parent f78ee4ff0f
commit 9a890574d5
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
7 changed files with 107 additions and 45 deletions

View file

@ -7,6 +7,10 @@ const constants = {
save_history: {
type: "boolean",
default: false
},
local: {
type: "boolean",
default: false
}
},

View file

@ -23,6 +23,11 @@ const deltas = [
function() {
db.prepare("ALTER TABLE Channels ADD COLUMN refreshed INTEGER")
.run()
},
// 2: Settings +local
function() {
db.prepare("ALTER TABLE Settings ADD COLUMN local INTEGER DEFAULT 0")
.run()
}
]