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;