Created
July 10, 2017 01:21
-
-
Save phyng/472df1cde8bd0a847d5fe51e99933432 to your computer and use it in GitHub Desktop.
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 characters
| 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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment