mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
25 lines
No EOL
740 B
SQL
25 lines
No EOL
740 B
SQL
BEGIN TRANSACTION;
|
|
|
|
/* Add incorrectVotes field */
|
|
CREATE TABLE "sqlb_temp_table_1" (
|
|
"videoID" TEXT NOT NULL,
|
|
"startTime" REAL NOT NULL,
|
|
"endTime" REAL NOT NULL,
|
|
"votes" INTEGER NOT NULL,
|
|
"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",
|
|
"shadowHidden" INTEGER NOT NULL
|
|
);
|
|
INSERT INTO sqlb_temp_table_1 SELECT videoID,startTime,endTime,votes,"1",UUID,userID,timeSubmitted,views,category,shadowHidden FROM sponsorTimes;
|
|
|
|
DROP TABLE sponsorTimes;
|
|
ALTER TABLE sqlb_temp_table_1 RENAME TO "sponsorTimes";
|
|
|
|
/* Increase version number */
|
|
INSERT INTO version VALUES(1);
|
|
|
|
COMMIT; |