add file_id unique constraint

This commit is contained in:
neri 2020-07-24 19:56:17 +02:00
parent 6c48d97799
commit 86b2b2bac8
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
CREATE TABLE IF NOT EXISTS files (
id serial,
file_id varchar(255) not null,
file_id varchar(255) not null unique,
file_name varchar(255) not null,
valid_till timestamp not null,
kind varchar(255) not null,