From 28e7ec0ef939a9e5cbf8eb37fe392a0b68c61be4 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 5 Jul 2021 13:26:49 -0400 Subject: [PATCH] Change db upgrade to v19 --- ...e_sponsorTimes_18.sql => _upgrade_sponsorTimes_19.sql} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename databases/{_upgrade_sponsorTimes_18.sql => _upgrade_sponsorTimes_19.sql} (81%) diff --git a/databases/_upgrade_sponsorTimes_18.sql b/databases/_upgrade_sponsorTimes_19.sql similarity index 81% rename from databases/_upgrade_sponsorTimes_18.sql rename to databases/_upgrade_sponsorTimes_19.sql index 5b524ab..24a0e60 100644 --- a/databases/_upgrade_sponsorTimes_18.sql +++ b/databases/_upgrade_sponsorTimes_19.sql @@ -1,7 +1,7 @@ BEGIN TRANSACTION; /* Add actionType field */ -CREATE TABLE "sqlb_temp_table_18" ( +CREATE TABLE "sqlb_temp_table_19" ( "videoID" TEXT NOT NULL, "startTime" REAL NOT NULL, "endTime" REAL NOT NULL, @@ -22,11 +22,11 @@ CREATE TABLE "sqlb_temp_table_18" ( "hashedVideoID" TEXT NOT NULL default '' ); -INSERT INTO sqlb_temp_table_18 SELECT "videoID","startTime","endTime","votes","locked","incorrectVotes","UUID","userID","timeSubmitted","views","category",'skip',"service","videoDuration","hidden","reputation","shadowHidden","hashedVideoID" FROM "sponsorTimes"; +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"; DROP TABLE "sponsorTimes"; -ALTER TABLE sqlb_temp_table_18 RENAME TO "sponsorTimes"; +ALTER TABLE sqlb_temp_table_19 RENAME TO "sponsorTimes"; -UPDATE "config" SET value = 18 WHERE key = 'version'; +UPDATE "config" SET value = 19 WHERE key = 'version'; COMMIT; \ No newline at end of file