I'm using migrations to update some property types. So, when an exception occurs in Up() method, it seems to me that Down() should be executed, right? But it's not happening. In neither of my migrations, Down() is never executed.
I'm interested in an explanation of how it's working and how can I ensure that if something goes wrong in Up() I can revert actions with some logic in Down()?
I tought that the downgrade will be auto performed if upgrade is not executed successfully.
When is Down() method in migrations executed?
Hi community.
I'm using migrations to update some property types. So, when an exception occurs in Up() method, it seems to me that Down() should be executed, right? But it's not happening. In neither of my migrations, Down() is never executed.
I'm interested in an explanation of how it's working and how can I ensure that if something goes wrong in Up() I can revert actions with some logic in Down()?
I tought that the downgrade will be auto performed if upgrade is not executed successfully.
is working on a reply...