-- Revert numerus:invoice_contact_id_fkey from pg begin; alter table numerus.invoice drop constraint invoice_contact_id_fkey , add foreign key (contact_id) references numerus.contact (contact_id) ; commit;