Added NOT NULL to cloud_file foreign key field

This commit is contained in:
drigato 2014-11-10 10:55:15 -05:00
parent 6b058ade0b
commit 8733788807
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ CREATE TABLE cloud_file
(
id serial NOT NULL,
resource_id text NOT NULL,
cc_file_id integer,
cc_file_id integer NOT NULL,
CONSTRAINT cloud_file_pkey PRIMARY KEY (id),
CONSTRAINT "cloud_file_FK_1" FOREIGN KEY (cc_file_id)
REFERENCES cc_files (id) MATCH SIMPLE