Postgresql 如何在strongloop中更改postgres数据源的架构?
我试图告诉strongloop我的gallery表已移动到products架构。将其添加到Postgresql 如何在strongloop中更改postgres数据源的架构?,postgresql,schema,loopbackjs,strongloop,Postgresql,Schema,Loopbackjs,Strongloop,我试图告诉strongloop我的gallery表已移动到products架构。将其添加到common/models/gallery.json中的模型定义中似乎没有效果。strongloop的新功能。我做错了什么 我当前的模式“模式”:“产品”是唯一添加的内容 { "name": "gallery", "plural": "galleries", "base": "PersistedModel", "idInjection": true, "options": { "
common/models/gallery.json中的模型定义中似乎没有效果。strongloop的新功能。我做错了什么
我当前的模式<代码>“模式”:“产品”
是唯一添加的内容
{
"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是一个占位符答案如下:
正确的选项值:
"options": {
"validateUpsert": true,
"postgresql": {
"schema": "products"
}
}
答案如下:
正确的选项值:
"options": {
"validateUpsert": true,
"postgresql": {
"schema": "products"
}
}