Ticket #519 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

convert_to_south command needs to allow "--ignore-ghost-migrations" as an option

Reported by: Eddie Bishop <eddie.bishop@…> Owned by: andrew
Priority: minor Milestone: 0.7.2
Component: commands Version: 0.7.1
Keywords: Cc:


When there is a ghost migration in the db, running convert_to_south on an unrelated app will only partially work. Specifically, the migration file gets created, but is not fake applied. This is because of a ghost migration exception.
To prevent this, "convert_to_south" can accept the "--ignore-ghost-migrations" option and, if specified, pass it to the underlying "migrate" command.
Right now (v 0.7.1), trying to specify the "--ignore-ghost-migrations" option to the convert_to_south command won't work.

In addition, other "migrate" commands like "--delete-ghost-migrations" should also be supported by convert_to_south.

See also #411 for sample output of trying to run convert_to_south on an app when a ghost migration was in the db.

Change History

comment:1 Changed 5 years ago by andrew

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to 0.7.2
Note: See TracTickets for help on using tickets.