This commit is contained in:
parent
2ed31ee1d3
commit
29aecd62a5
|
@ -0,0 +1,12 @@
|
|||
DELIMITER $$
|
||||
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`mailAliasAccount_afterDelete`
|
||||
AFTER DELETE ON `mailAliasAccount`
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
INSERT INTO userLog
|
||||
SET `action` = 'delete',
|
||||
`changedModel` = 'MailAliasAccount',
|
||||
`changedModelId` = OLD.id,
|
||||
`userFk` = account.myUser_getId();
|
||||
END$$
|
||||
DELIMITER ;
|
|
@ -1,4 +1,4 @@
|
|||
ALTER TABLE account.mailAliasAccount
|
||||
ADD editorFk INT UNSIGNED NULL,
|
||||
ADD editorFk INT(10) UNSIGNED DEFAULT NULL,
|
||||
ADD CONSTRAINT mailAliasAccount_editorFk FOREIGN KEY (editorFk)
|
||||
REFERENCES account.`user`(id);
|
Loading…
Reference in New Issue