mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Fix types on videoInfo table
This commit is contained in:
parent
450f4a2d44
commit
c6944bd7cf
1 changed files with 18 additions and 0 deletions
18
databases/_upgrade_sponsorTimes_26.sql
Normal file
18
databases/_upgrade_sponsorTimes_26.sql
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
BEGIN TRANSACTION;
|
||||||
|
|
||||||
|
CREATE TABLE "sqlb_temp_table_26" (
|
||||||
|
"videoID" TEXT PRIMARY KEY NOT NULL,
|
||||||
|
"channelID" TEXT NOT NULL,
|
||||||
|
"title" TEXT NOT NULL,
|
||||||
|
"published" REAL NOT NULL,
|
||||||
|
"genreUrl" TEXT NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
INSERT INTO sqlb_temp_table_26 SELECT "videoID", "channelID", "title", "published", '' FROM "videoInfo";
|
||||||
|
|
||||||
|
DROP TABLE "videoInfo";
|
||||||
|
ALTER TABLE sqlb_temp_table_26 RENAME TO "videoInfo";
|
||||||
|
|
||||||
|
UPDATE "config" SET value = 26 WHERE key = 'version';
|
||||||
|
|
||||||
|
COMMIT;
|
Loading…
Reference in a new issue