在codeship中创建虚拟表,查看,使用sails-mysql适配器

时间:2017-04-19 17:07:31

标签: sails.js codeship

我使用codeship通过以下配置文件构建我的应用程序。在我使用一个控制器从视图"虚拟表"中检索数据之前一切正常。从我的本地,代码很好。但在代码生成过程中,错误报告Table 'test.testview' doesn't exist。我可以用任何方式使用sails-mysql适配器在codeship构建过程中创建virtal表吗?

module.exports.connections = {
    codeshipDb: {
      adapter: 'sails-mysql',
      host: '127.0.0.1',
      user: 'root',
      password: 'test',
      database: 'test'
    },
 }

0 个答案:

没有答案