update clientLog model and structure

This commit is contained in:
Bernat 2018-10-17 09:04:32 +02:00
parent 6773e58cad
commit f61b969c6f
2 changed files with 17 additions and 7 deletions

View File

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

View File

@ -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": {