Modify

Ticket #282 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Have migrate command exit with an error code in the case of migration failure

Reported by: jonasnockert@… Owned by: andrew
Priority: minor Milestone: 0.7
Component: commands Version: 0.6.2
Keywords: Cc:

Description

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!

Attachments

Change History

comment:1 Changed 4 years ago by andrew

  • Status changed from new to assigned
  • Milestone set to 0.7

I entirely agree; startmigration (or rather, its new replacement) has just gained error codes recently, so I'll add them into migrate as well.

comment:2 Changed 4 years ago by andrew

  • Status changed from assigned to closed
  • Resolution set to fixed

This is now the case in trunk.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.