#6600 add column #2378
|
@ -1,9 +1 @@
|
|||
ALTER TABLE vn.item ADD COLUMN photoMotivation VARCHAR(255);
|
||||
|
||||
CREATE TABLE vn.itemPhotoComment (
|
||||
id int(11) NOT NULL AUTO_INCREMENT,
|
||||
itemFk int(11) NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
FOREIGN KEY (itemFk) REFERENCES vn.item(id) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||
UNIQUE (itemFk)
|
||||
);
|
||||
|
|
|
@ -35,9 +35,6 @@
|
|||
"ItemPackingType": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"ItemPhotoComment": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"ItemTag": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
|
|
|
@ -215,13 +215,7 @@
|
|||
"type": "hasOne",
|
||||
"model": "Packaging",
|
||||
"foreignKey": "itemFk"
|
||||
},
|
||||
"photoComment": {
|
||||
"type": "hasOne",
|
||||
"model": "itemPhotoComment",
|
||||
"foreignKey": "itemFk"
|
||||
}
|
||||
|
||||
},
|
||||
"scopes": {
|
||||
"withName": {
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
"name": "ItemPhotoComment",
|
||||
"base": "VnModel",
|
||||
"mixins": {
|
||||
"Loggable": true
|
||||
},
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "itemPhotoComment"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number",
|
||||
"id": true,
|
||||
"description": "Id"
|
||||
},
|
||||
"itemFk": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue