回滚
如果出于某种原因你想回滚变更,可以运行:
typeorm migration:revert -- -d path-to-datasource-config该命令会执行最近一次已执行迁移中的 down。
如果你需要回滚多个迁移,必须多次调用该命令。
If for some reason you want to revert the changes, you can run:
typeorm migration:revert -- -d path-to-datasource-configThis command will execute down in the latest executed migration.
If you need to revert multiple migrations you must call this command multiple times.