-- 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);
