-
After encountering an error on migration (using migration ddl), I cannot cancel the migration using
So, what I do is terminate the CLI. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can do Background: when some query fails in the transaction (you can notice that state in shell as |
Beta Was this translation helpful? Give feedback.
You can do
rollback
to rollback the whole transaction. Any specific reason you want to doabort migration
without rolling back transaction? (in this case, you can use savepoints)Background: when some query fails in the transaction (you can notice that state in shell as
[tx:failed]
) we don't allow any query to execute (exceptions arerollback
androllback to savepoint
). In this senseabort migration
is no different from any other query.