我在sequelize上运行了help命令,发现有两个不同的命令具有相同的描述:
$ sequelize help:migration:create
Sequelize [Node: 6.9.5, CLI: 2.5.1, ORM: 3.8.0, mysql: 2.5.0]
Loaded configuration file "config\config.json".
Using environment "development".
COMMANDS
sequelize migration:create -- Generates a new migration file.
sequelize migration:generate -- Generates a new migration file.
它们之间有什么区别吗?
答案 0 :(得分:1)
没有区别:migration:generate
是migration:create
https://github.com/sequelize/cli/blob/master/lib/tasks/migration.js#L20