mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 03:26:59 +03:00
Add unique constraint for titles
This commit is contained in:
7
databases/_upgrade_sponsorTimes_37.sql
Normal file
7
databases/_upgrade_sponsorTimes_37.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
ALTER TABLE "titles" ADD UNIQUE ("videoID", "title"); --!sqlite-ignore
|
||||
|
||||
UPDATE "config" SET value = 37 WHERE key = 'version';
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user