salix/db/changes/240001/00-clientCreditLimitToRoleC...

5 lines
308 B
MySQL
Raw Normal View History

RENAME TABLE `vn`.`clientCreditLimit` TO `vn`.`roleCreditLimit`;
2023-12-21 07:33:50 +00:00
ALTER TABLE `vn`.`roleCreditLimit` DROP FOREIGN KEY `clientCreditLimit_FK`;
ALTER TABLE `vn`.`roleCreditLimit` ADD CONSTRAINT `roleCreditLimit_FK` FOREIGN KEY (`roleFk`) REFERENCES `account`.`role`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;