'Revert a specific migration in TypeORM
Is it possible to revert a specific migration in Typeorm?, I want to only revert a particular migration and not all till I get to the migration I want to revert,
Because normally you just call typeorm migration: revert
multiple times and it starts reverting from the last executed and removing it from the database, if you want to revert multiple migrations.
Solution 1:[1]
If you are really sure with reverting specific migration before some others. You might try tweaking its id value on the migration Table.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |