refactor: refs #8613 alter table default 1
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Ivan Mas 2025-02-21 12:21:13 +01:00
parent 69485dca75
commit 726825164d
2 changed files with 1 additions and 2 deletions

View File

@ -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 ;

View File

@ -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)