Merge pull request 'HotFix-mandate-Log' (!3543) from HotFix-mandate-Log into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #3543 Reviewed-by: Guillermo Bonet <guillermo@verdnatura.es>
This commit is contained in:
commit
21f50c1ee6
|
@ -3,9 +3,9 @@ CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`mandate_afterDelete`
|
|||
AFTER DELETE ON `mandate`
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
INSERT INTO mandateLog
|
||||
INSERT INTO clientLog
|
||||
SET `action` = 'delete',
|
||||
`changedModel` = 'mandate',
|
||||
`changedModel` = 'Mandate',
|
||||
`changedModelId` = OLD.id,
|
||||
`userFk` = account.myUser_getId();
|
||||
END$$
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE vn.clientLog MODIFY COLUMN changedModel
|
||||
ENUM('Client','Address','ClientContact','ClientDms','ClientObservation','ClientSample','ClientUnpaid','Greuge','Recovery','Mandate','TpvTransaction','WorkerDms','Sms')
|
||||
CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Client' NOT NULL;
|
||||
|
||||
DROP TABLE vn.mandateLog;
|
||||
|
Loading…
Reference in New Issue