mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-02-02 07:40:43 +03:00
Support private db with postgres
This commit is contained in:
@@ -29,7 +29,7 @@ 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);
|
||||
CREATE INDEX IF NOT EXISTS "sponsorTimes_hashedIP" on "sponsorTimes"("hashedIP");
|
||||
CREATE INDEX IF NOT EXISTS "votes_userID" on "votes"("UUID");
|
||||
|
||||
COMMIT;
|
||||
|
||||
@@ -3,6 +3,6 @@ BEGIN TRANSACTION;
|
||||
/* for testing the db upgrade, don't remove because it looks empty */
|
||||
|
||||
/* Add version to config */
|
||||
INSERT INTO config (key, value) VALUES("version", 1);
|
||||
INSERT INTO config (key, value) VALUES('version', 1);
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user