Kyoo/transcoder/migrations/000005_fingerprints.up.sql
2026-04-16 00:31:05 +02:00

20 lines
536 B
PL/PgSQL

begin;
alter table gocoder.info add column ver_fingerprint integer not null default 0;
create table gocoder.fingerprints(
id integer not null primary key references gocoder.info(id) on delete cascade,
start_data text not null,
end_data text not null
);
create table gocoder.chapterprints(
id serial primary key,
data text not null
);
alter table gocoder.chapters add column fingerprint_id integer references gocoder.chapterprints(id) on delete set null;
alter table gocoder.chapters add column match_accuracy integer;
commit;