mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
7a83e7901a
Hash prefix fixes
13 lines
No EOL
448 B
SQL
13 lines
No EOL
448 B
SQL
BEGIN TRANSACTION;
|
|
|
|
/* hash upgrade test sha256('vid') = '1ff838dc6ca9680d88455341118157d59a055fe6d0e3870f9c002847bebe4663'
|
|
/* Add hash field */
|
|
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";
|
|
|
|
COMMIT; |