Improve "contacts.registrar_id" column

#480
This commit is contained in:
Artur Beljajev 2017-06-06 23:33:12 +03:00
parent aad18f3d6f
commit af53313608
2 changed files with 17 additions and 1 deletions

View file

@ -693,7 +693,7 @@ CREATE TABLE contacts (
auth_info character varying,
name character varying,
org_name character varying,
registrar_id integer,
registrar_id integer NOT NULL,
creator_str character varying,
updator_str character varying,
ident_country_code character varying,
@ -4646,6 +4646,14 @@ CREATE UNIQUE INDEX unique_data_migrations ON data_migrations USING btree (versi
CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
--
-- Name: contacts_registrar_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY contacts
ADD CONSTRAINT contacts_registrar_id_fk FOREIGN KEY (registrar_id) REFERENCES registrars(id);
--
-- Name: domains_registrant_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@ -5156,3 +5164,5 @@ INSERT INTO schema_migrations (version) VALUES ('20170606133501');
INSERT INTO schema_migrations (version) VALUES ('20170606150352');
INSERT INTO schema_migrations (version) VALUES ('20170606202859');