salix/db/versions/11444-orangeMastic/01-firstScript.sql

7 lines
267 B
MySQL
Raw Normal View History

ALTER TABLE vn.claimEnd
MODIFY COLUMN claimDestinationFk tinyint(3) unsigned NOT NULL DEFAULT 1,
ADD CONSTRAINT fk_claimEnd_claimDestination
FOREIGN KEY (claimDestinationFk)
REFERENCES claimDestination(id)
ON UPDATE CASCADE
ON DELETE RESTRICT;