Remove index creation from upgraders

This commit is contained in:
Ajay Ramachandran 2021-03-11 18:55:27 -05:00
parent 4168733825
commit cfdb0f4466
3 changed files with 0 additions and 8 deletions

View file

@ -29,7 +29,4 @@ CREATE TABLE IF NOT EXISTS "config" (
"value" TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS "sponsorTimes_hashedIP" on "sponsorTimes"("hashedIP");
CREATE INDEX IF NOT EXISTS "votes_userID" on "votes"("UUID");
COMMIT;

View file

@ -35,9 +35,6 @@ CREATE TABLE IF NOT EXISTS "config" (
"value" TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS "sponsorTimes_videoID" on "sponsorTimes"("videoID");
CREATE INDEX IF NOT EXISTS "sponsorTimes_UUID" on "sponsorTimes"("UUID");
CREATE EXTENSION IF NOT EXISTS pgcrypto; --!sqlite-ignore
COMMIT;

View file

@ -5,8 +5,6 @@ BEGIN TRANSACTION;
ALTER TABLE "sponsorTimes" ADD "hashedVideoID" TEXT NOT NULL default '';
UPDATE "sponsorTimes" SET "hashedVideoID" = sha256("videoID");
CREATE INDEX IF NOT EXISTS "sponsorTimes_hashedVideoID" on "sponsorTimes"("hashedVideoID");
/* Bump version in config */
UPDATE "config" SET value = 3 WHERE key = 'version';