2021-07-05 00:35:15 +02:00
|
|
|
BEGIN TRANSACTION;
|
|
|
|
|
|
|
|
/* Add actionType field */
|
2021-07-05 19:26:49 +02:00
|
|
|
CREATE TABLE "sqlb_temp_table_19" (
|
2021-07-05 00:35:15 +02:00
|
|
|
"videoID" TEXT NOT NULL,
|
|
|
|
"startTime" REAL NOT NULL,
|
|
|
|
"endTime" REAL NOT NULL,
|
|
|
|
"votes" INTEGER NOT NULL,
|
|
|
|
"locked" INTEGER NOT NULL default '0',
|
|
|
|
"incorrectVotes" INTEGER NOT NULL default '1',
|
|
|
|
"UUID" TEXT NOT NULL UNIQUE,
|
|
|
|
"userID" TEXT NOT NULL,
|
|
|
|
"timeSubmitted" INTEGER NOT NULL,
|
|
|
|
"views" INTEGER NOT NULL,
|
|
|
|
"category" TEXT NOT NULL DEFAULT 'sponsor',
|
|
|
|
"actionType" TEXT NOT NULL DEFAULT 'skip',
|
|
|
|
"service" TEXT NOT NULL DEFAULT 'YouTube',
|
|
|
|
"videoDuration" REAL NOT NULL DEFAULT '0',
|
|
|
|
"hidden" INTEGER NOT NULL DEFAULT '0',
|
|
|
|
"reputation" REAL NOT NULL DEFAULT 0,
|
|
|
|
"shadowHidden" INTEGER NOT NULL,
|
|
|
|
"hashedVideoID" TEXT NOT NULL default ''
|
|
|
|
);
|
|
|
|
|
2021-07-05 19:26:49 +02:00
|
|
|
INSERT INTO sqlb_temp_table_19 SELECT "videoID","startTime","endTime","votes","locked","incorrectVotes","UUID","userID","timeSubmitted","views","category",'skip',"service","videoDuration","hidden","reputation","shadowHidden","hashedVideoID" FROM "sponsorTimes";
|
2021-07-05 00:35:15 +02:00
|
|
|
|
|
|
|
DROP TABLE "sponsorTimes";
|
2021-07-05 19:26:49 +02:00
|
|
|
ALTER TABLE sqlb_temp_table_19 RENAME TO "sponsorTimes";
|
2021-07-05 00:35:15 +02:00
|
|
|
|
2021-07-05 19:26:49 +02:00
|
|
|
UPDATE "config" SET value = 19 WHERE key = 'version';
|
2021-07-05 00:35:15 +02:00
|
|
|
|
|
|
|
COMMIT;
|