mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Add unique constraint for titles
This commit is contained in:
parent
ea80a413ba
commit
b2081fe155
1 changed files with 7 additions and 0 deletions
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;
|
Loading…
Reference in a new issue