add file_id unique constraint
This commit is contained in:
parent
6c48d97799
commit
86b2b2bac8
|
@ -1,6 +1,6 @@
|
||||||
CREATE TABLE IF NOT EXISTS files (
|
CREATE TABLE IF NOT EXISTS files (
|
||||||
id serial,
|
id serial,
|
||||||
file_id varchar(255) not null,
|
file_id varchar(255) not null unique,
|
||||||
file_name varchar(255) not null,
|
file_name varchar(255) not null,
|
||||||
valid_till timestamp not null,
|
valid_till timestamp not null,
|
||||||
kind varchar(255) not null,
|
kind varchar(255) not null,
|
||||||
|
|
Loading…
Reference in New Issue