mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Remove index creation from upgraders
This commit is contained in:
@@ -29,7 +29,4 @@ CREATE TABLE IF NOT EXISTS "config" (
|
|||||||
"value" TEXT NOT NULL
|
"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;
|
COMMIT;
|
||||||
|
|||||||
@@ -35,9 +35,6 @@ CREATE TABLE IF NOT EXISTS "config" (
|
|||||||
"value" TEXT NOT NULL
|
"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
|
CREATE EXTENSION IF NOT EXISTS pgcrypto; --!sqlite-ignore
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
@@ -5,8 +5,6 @@ BEGIN TRANSACTION;
|
|||||||
ALTER TABLE "sponsorTimes" ADD "hashedVideoID" TEXT NOT NULL default '';
|
ALTER TABLE "sponsorTimes" ADD "hashedVideoID" TEXT NOT NULL default '';
|
||||||
UPDATE "sponsorTimes" SET "hashedVideoID" = sha256("videoID");
|
UPDATE "sponsorTimes" SET "hashedVideoID" = sha256("videoID");
|
||||||
|
|
||||||
CREATE INDEX IF NOT EXISTS "sponsorTimes_hashedVideoID" on "sponsorTimes"("hashedVideoID");
|
|
||||||
|
|
||||||
/* Bump version in config */
|
/* Bump version in config */
|
||||||
UPDATE "config" SET value = 3 WHERE key = 'version';
|
UPDATE "config" SET value = 3 WHERE key = 'version';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user