Fix types on videoInfo table

This commit is contained in:
Ajay Ramachandran 2021-10-17 14:54:35 -04:00
parent 450f4a2d44
commit c6944bd7cf

View 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;