I *think* the rollback feature is working?
This commit is contained in:
parent
f5907bf476
commit
cae76032d1
@ -125,7 +125,7 @@ function executeMigration(migrationNumber, latestMigrationNumber, direction) {
|
|||||||
|
|
||||||
if (direction === 'up') {
|
if (direction === 'up') {
|
||||||
// Revert!
|
// Revert!
|
||||||
executeMigration(migrationNumber - 1, 1, 'down');
|
executeMigration(migrationNumber - 1, latestMigrationNumber, 'down');
|
||||||
} else {
|
} else {
|
||||||
console.error("I even failed to roll back. Yikes! :'(");
|
console.error("I even failed to roll back. Yikes! :'(");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user