首页 > 解决方案 > 是否可以将 db-migrate 配置为使用未命名迁移的表来跟踪迁移?

问题描述

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

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

标签: node.jsdatabasedbmigrate

解决方案


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

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

推荐阅读