SponsorBlockServer/databases/_upgrade_sponsorTimes_18.sql

10 lines
245 B
MySQL
Raw Normal View History

2021-07-05 05:33:12 +02:00
BEGIN TRANSACTION;
/* Add hash field */
ALTER TABLE "lockCategories" ADD "hashedVideoID" TEXT NOT NULL default '';
UPDATE "lockCategories" SET "hashedVideoID" = sha256("videoID");
UPDATE "config" SET value = 18 WHERE key = 'version';
COMMIT;