Ticket #282 (closed enhancement: fixed)
Have migrate command exit with an error code in the case of migration failure
|Reported by:||jonasnockert@…||Owned by:||andrew|
I'm running South migrations by means of a Fabric deployment script.
Fabric throws an exception whenever a command it executes returns anything else than 0. This is a very practical feature as you can make deployment stop as soon as something goes wrong, like your django tests failing for example.
If South could return an error code in the case of a migration failure, it would be more useful when used from Fabric.
Of course, it's entirely possible to look for strings like "Aborting." in South's output as a work-around.
Thanks for all the work on South by the way, it's great!