You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/15092.up

3 lines
235 B

USE billing;
alter table contract_balances drop foreign key `cb_invoiceid_ref`;
alter table contract_balances add CONSTRAINT cb_invoiceid_ref FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) on delete set null ON UPDATE CASCADE;