SponsorBlockServer/databases/_upgrade_sponsorTimes_26.sql
2021-10-17 14:54:35 -04:00

18 lines
No EOL
455 B
SQL

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;