Add a constraint for subtitles

This commit is contained in:
2024-08-05 23:27:29 +02:00
parent c84afc8e4c
commit 7d617a5d28
2 changed files with 24 additions and 10 deletions
@@ -57,6 +57,8 @@ create table subtitles(
is_forced boolean not null,
is_external boolean not null,
path varchar(4096)
constraint subtitle_pk primary key (sha, idx, path)
);
create type chapter_type as enum('content', 'recap', 'intro', 'credits', 'preview');