2016-03-18 35 views
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是一个占位符

回答