Files
database/migrations/000.353.sql
T
2022-01-20 06:04:59 +01:00

6 lines
208 B
SQL

-- remove order-orders foreign key from invoices
ALTER TABLE invoices DROP CONSTRAINT order_fk;
ALTER TABLE ONLY public.invoices ADD CONSTRAINT order_fk FOREIGN KEY (order_id) REFERENCES public.orders(id);