node.js - 是否可以将 db-migrate 配置为使用未命名迁移的表来跟踪迁移?
问题描述
我想使用 db-migrate。但是我的团队想为项目使用表名“迁移”。我无权改变这一点。
我可以配置 db-migrate 以在另一个表中跟踪其数据库迁移吗?
解决方案
这并不像我想象的那么难。它在文档中 - https://db-migrate.readthedocs.io/en/latest/Getting%20Started/installation/。
--migration-table Set the name of the migration table.
推荐阅读
- c# - 为什么在运行 OpenBabel hello-world 程序时会产生这个异常?
- file - Dart.Io 文件函数“writeAsString”无法写入下载目录
- go - 去获取:net/http:TLS握手超时
- xcode - 如何在现有的 macOS / Xcode 项目中实现 Steamworks API?
- sql - SQL:向现有 MAX 日期查询添加另一个 MAX 字段
- mongodb - MongoDB - 无法连接
- c# - 在 bin 文件夹中找不到 DLL 的类型或命名空间名称
- java - NoClassDefFoundError: net/miginfocom/layout/ComponentWrapper netbeans miglayout
- reactjs - 为什么 react-facebook-login redirectUrl 不起作用?
- r - 使用 R 中的 confint 函数查找 95% 置信区间