refactor: refs #8613 alter table default 1
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
69485dca75
commit
726825164d
|
@ -4,6 +4,5 @@ CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`claimEnd_beforeInsert`
|
|||
FOR EACH ROW
|
||||
BEGIN
|
||||
SET NEW.editorFk = account.myUser_getId();
|
||||
SET NEW.claimDestinationFk = 1;
|
||||
END$$
|
||||
DELIMITER ;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
ALTER TABLE vn.claimEnd
|
||||
MODIFY COLUMN claimDestinationFk tinyint(3) unsigned NOT NULL,
|
||||
MODIFY COLUMN claimDestinationFk tinyint(3) unsigned NOT NULL DEFAULT 1,
|
||||
ADD CONSTRAINT fk_claimEnd_claimDestination
|
||||
FOREIGN KEY (claimDestinationFk)
|
||||
REFERENCES claimDestination(id)
|
||||
|
|
Loading…
Reference in New Issue