【问题标题】:Is it possible to configure db-migrate to use a table not named migrations to keep track of migrations?是否可以将 db-migrate 配置为使用未命名迁移的表来跟踪迁移?
【发布时间】:2020-03-31 15:24:48
【问题描述】:

我想使用 db-migrate。但是我的团队想为项目使用表名“迁移”。我无权更改。

我可以配置 db-migrate 以在另一个表中跟踪其数据库迁移吗?

【问题讨论】:

    标签: node.js database dbmigrate


    【解决方案1】:

    这并没有我想象的那么难。它就在文档中 - https://db-migrate.readthedocs.io/en/latest/Getting%20Started/installation/

      --migration-table           Set the name of the migration table.
    

    【讨论】:

      猜你喜欢
      • 2020-09-11
      • 2012-01-22
      • 1970-01-01
      • 2021-02-07
      • 2023-03-31
      • 2012-09-22
      • 2015-11-25
      • 1970-01-01
      • 2017-09-27
      相关资源
      最近更新 更多