2023-04-28 12:17:19 +00:00
|
|
|
ALTER TABLE `vn`.`workerConfig` ADD payMethodFk tinyint(3) unsigned NULL;
|
|
|
|
ALTER TABLE `vn`.`workerConfig` ADD CONSTRAINT workerConfig_FK FOREIGN KEY (roleFk) REFERENCES account.`role`(id) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
|
|
ALTER TABLE `vn`.`workerConfig` ADD CONSTRAINT workerConfig_FK_1 FOREIGN KEY (payMethodFk) REFERENCES `vn`.`payMethod`(id) ON DELETE SET NULL ON UPDATE CASCADE;
|
2023-06-01 05:16:06 +00:00
|
|
|
|
2023-04-28 12:17:19 +00:00
|
|
|
UPDATE `vn`.`workerConfig`
|
|
|
|
SET payMethodFk = 4
|
|
|
|
WHERE id=1;
|