1
我試圖告訴strongloop,我的圖庫表已移至產品架構。將其添加到common/models/gallery.json
中的模型定義看起來沒有任何效果。新的strongloop。我究竟做錯了什麼?如何在strongloop中更改postgres數據源的模式?
我目前的模式。 "schema": "products"
是唯一添加的東西。
{
"name": "gallery",
"plural": "galleries",
"base": "PersistedModel",
"idInjection": true,
"options": {
"validateUpsert": true,
"schema": "products"
},
"properties": {
"id": {
"type": "number"
},
"name": {
"type": "string",
"required": true
},
"description": {
"type": "string"
},
"uuid": {
"type": "uuid"
},
"test": {
"type": "string"
},
"order": {
"type": "number"
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
UUID是一個佔位符