mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Remove index creation from upgraders
This commit is contained in:
parent
4168733825
commit
cfdb0f4466
3 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in a new issue