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

Implement takedown system

This commit is contained in:
Cadence Ember 2021-11-20 19:42:34 +13:00
parent 741a1199dd
commit b9f703086f
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
10 changed files with 111 additions and 2 deletions

View file

@ -63,6 +63,13 @@ const deltas = [
function() {
db.prepare("CREATE INDEX Videos_authorID ON Videos (authorID)")
.run()
},
// 10: +TakedownVideos, +TakedownChannels
function() {
db.prepare("CREATE TABLE TakedownVideos (id TEXT NOT NULL, org TEXT, url TEXT, PRIMARY KEY (id))")
.run()
db.prepare("CREATE TABLE TakedownChannels (ucid TEXT NOT NULL, org TEXT, url TEXT, PRIMARY KEY (ucid))")
.run()
}
]