salix/db/versions/11201-limeChrysanthemum/00-firstScript.sql

5 lines
230 B
MySQL
Raw Normal View History

2024-08-27 09:41:34 +00:00
-- Place your SQL code here
ALTER TABLE vn.saleGroup ADD stateFk TINYINT(3) UNSIGNED;
ALTER TABLE vn.saleGroup ADD CONSTRAINT saleGroup_state_FK FOREIGN KEY (stateFk) REFERENCES vn.state(id) ON DELETE RESTRICT ON UPDATE CASCADE;