【问题标题】:db migration in orientdb - nodejs- orientjsorientdb 中的 db 迁移 - nodejs- orientjs
【发布时间】:2015-12-07 09:58:39
【问题描述】:

我正在使用

创建迁移脚本
orients migrate create something

up函数是这样的

 db.class.create('User', 'V')
    .then(function (User) {
        console.log("Created class User");
    })

}

'then' 函数没有被执行。但是这个类正在被创建。有什么遗漏吗?

我正在使用 orientjs 版本:2.1.0 orientdb version 2.1.6 社区版

----更新----- 这是 github 问题:https://github.com/orientechnologies/orientjs/issues/120

【问题讨论】:

    标签: node.js orientdb orientjs


    【解决方案1】:

    您必须在 up 函数中返回一些内容才能看到 .then 输出。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-20
      • 1970-01-01
      • 2018-05-18
      • 2013-02-01
      • 2012-11-17
      • 1970-01-01
      相关资源
      最近更新 更多