我在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.
它们之间有什么区别吗?
最佳答案
没什么区别:migration:generate
是migration:create
的别名
https://github.com/sequelize/cli/blob/master/lib/tasks/migration.js#L20