Ticket #138 (closed defect: invalid)
forward() and backwards() run twice
|Reported by:||derek73@…||Owned by:||andrew|
I was trying to create a migration that populated a new model with data from an old model and I kept getting duplicate key errors. Took me a while to figure out but putting a print statement in the migration indicates the forward() and backwards() methods actually run twice.
class Migration: def forwards(self, orm): print "running forward" def backwards(self, orm): print "running backwards"
$ ./manage migrate app running forward running forward $ ./manage migrate app zero running backwards running backwards