mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-02-02 07:40:43 +03:00
Merge pull request #131 from ajayyy/query-by-hash-prefix
Hash prefix fixes
This commit is contained in:
@@ -5,6 +5,8 @@ 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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user