Merge branch 'master' into test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2025-03-06 14:45:11 +01:00
commit 8370803fed
2 changed files with 8 additions and 2 deletions

View File

@ -3,9 +3,9 @@ CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`mandate_afterDelete`
AFTER DELETE ON `mandate` AFTER DELETE ON `mandate`
FOR EACH ROW FOR EACH ROW
BEGIN BEGIN
INSERT INTO mandateLog INSERT INTO clientLog
SET `action` = 'delete', SET `action` = 'delete',
`changedModel` = 'mandate', `changedModel` = 'Mandate',
`changedModelId` = OLD.id, `changedModelId` = OLD.id,
`userFk` = account.myUser_getId(); `userFk` = account.myUser_getId();
END$$ END$$

View File

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