Co-authored-by: Niklas Fondberg <niklas.fondberg@photowall.se> Co-authored-by: Rikard Bartholf <rikard@bartholf.nu>
6 lines
208 B
SQL
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);
|