diff --git a/services/db/install/changes/1.2-CHECK/02-clentLog.sql b/services/db/install/changes/1.2-CHECK/02-clentLog.sql index 76ba2a65d..163ce6086 100644 --- a/services/db/install/changes/1.2-CHECK/02-clentLog.sql +++ b/services/db/install/changes/1.2-CHECK/02-clentLog.sql @@ -1,2 +1,9 @@ ALTER TABLE `vn`.`clientLog` CHANGE COLUMN `newInstance` `newInstance` TEXT NULL DEFAULT NULL ; + + + +ALTER TABLE `vn`.`clientLog` +CHANGE COLUMN `model` `changedModel` TEXT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NULL DEFAULT NULL , +ADD COLUMN `changedModelId` INT(11) NULL DEFAULT NULL AFTER `newInstance`, +ADD COLUMN `changedModelValue` INT(11) NULL DEFAULT NULL AFTER `changedModelId`; diff --git a/services/loopback/common/models/client-log.json b/services/loopback/common/models/client-log.json index 947036d79..054cb88e5 100644 --- a/services/loopback/common/models/client-log.json +++ b/services/loopback/common/models/client-log.json @@ -23,20 +23,23 @@ "type": "String", "required": true }, - "model": { - "type": "String", - "required": true + "changedModel": { + "type": "Object" }, "oldInstance": { - "type": "Object", - "required": true + "type": "Object" }, "newInstance": { - "type": "Object", - "required": true + "type": "Object" }, "creationDate": { "type": "Date" + }, + "changedModelId": { + "type": "Number" + }, + "changedModelValue": { + "type": "Number" } }, "relations": {