Created
July 10, 2017 01:21
-
-
Save phyng/472df1cde8bd0a847d5fe51e99933432 to your computer and use it in GitHub Desktop.
Revisions
-
phyng created this gist
Jul 10, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ ALTER TABLE order_orderitem ADD company_id int; CREATE INDEX order_orderitem_company_id ON order_orderitem USING btree (company_id); ALTER TABLE ONLY order_orderitem ADD CONSTRAINT company_id_refs_id_4459ffbd FOREIGN KEY (company_id) REFERENCES company_company(id) DEFERRABLE INITIALLY DEFERRED;