update fixtures and mudole itemTag.json

This commit is contained in:
Bernat Exposito 2018-02-21 13:44:25 +01:00
parent 027c19f5c5
commit e377e9e452
4 changed files with 15 additions and 5 deletions

View File

@ -418,10 +418,10 @@ INSERT INTO `salix`.`user`(`id`,`username`,`password`,`email`)
VALUES
(10, 'JessicaJones', 'ac754a330530832ba1bf7687f577da91', 'JessicaJones@verdnatura.es');
INSERT INTO `vn`.`tag`(`id`,`name`,`free`,`isQuantitatif`,`sourceTable`,`unit`)
INSERT INTO `vn`.`tag`(`id`,`name`,`isFree`,`isQuantitatif`,`sourceTable`,`unit`)
VALUES
(1, 'Color', 1, 0, null, null),
(2, 'Power', 1, 0, null, null),
(1, 'Color', 0, 0, null, null),
(2, 'Power', 0, 0, null, null),
(3, 'Shape', 1, 0, null, null),
(4, 'Location', 1, 0, null, null),
(5, 'Owner', 1, 1, null, null);

View File

@ -0,0 +1,2 @@
ALTER TABLE `vn`.`tag`
CHANGE COLUMN `free` `isFree` TINYINT(1) NOT NULL DEFAULT '1' ;

View File

@ -32,5 +32,13 @@
"model": "Tag",
"foreignKey": "tagFk"
}
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}

View File

@ -17,7 +17,7 @@
"type": "String",
"required": true
},
"free": {
"isFree": {
"type": "Number"
},
"sourceTable": {