Change contacts.uuid and domains.uuid to NOT NULL

This commit is contained in:
Artur Beljajev 2018-06-13 07:27:29 +03:00
parent 1eca44f32c
commit 5626c87e04
4 changed files with 23 additions and 2 deletions

View file

@ -640,7 +640,7 @@ CREATE TABLE contacts (
ident_updated_at timestamp without time zone,
upid integer,
up_date timestamp without time zone,
uuid uuid DEFAULT gen_random_uuid()
uuid uuid DEFAULT gen_random_uuid() NOT NULL
);
@ -913,7 +913,7 @@ CREATE TABLE domains (
statuses_backup character varying[] DEFAULT '{}'::character varying[],
upid integer,
up_date timestamp without time zone,
uuid uuid DEFAULT gen_random_uuid()
uuid uuid DEFAULT gen_random_uuid() NOT NULL
);
@ -4738,3 +4738,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180612042625');
INSERT INTO schema_migrations (version) VALUES ('20180612042953');
INSERT INTO schema_migrations (version) VALUES ('20180613030330');