# 回滚

> 英文标题：Reverting
> 官网原文：https://typeorm.io/docs/migrations/reverting
> 文档版本：TypeORM v1.1
> 体例：英文原文（EN）与中文译文（ZH）逐块并列，共 5 块

---

<!-- EN -->
# Reverting

<!-- ZH -->
# 回滚

<!-- EN -->
If for some reason you want to revert the changes, you can run:

<!-- ZH -->
如果出于某种原因你想回滚变更，可以运行：

<!-- EN -->
```shell
typeorm migration:revert -- -d path-to-datasource-config
```

<!-- ZH -->
```shell
typeorm migration:revert -- -d path-to-datasource-config
```

<!-- EN -->
This command will execute `down` in the latest executed migration.

<!-- ZH -->
该命令会执行最近一次已执行迁移中的 `down`。

<!-- EN -->
If you need to revert multiple migrations you must call this command multiple times.

<!-- ZH -->
如果你需要回滚多个迁移，必须多次调用该命令。
