Ticket #418 (closed defect: wontfix)

Opened 6 years ago

Last modified 6 years ago

Migrations with - (hyphen) in their name are not found by south

Reported by: cmkmrr Owned by: andrew
Priority: major Milestone: 0.7.1
Component: migrations Version: mercurial
Keywords: Cc:


Some of our old migrations have hyphens instead of underscores to separate words (e.g. 0008_clear-queues.py)

In tip & .7 these migrations are not listed in the migrations that need to be executed.


fix_hyphen_migrations.diff (812 bytes) - added by cmkmrr 6 years ago.

Change History

Changed 6 years ago by cmkmrr

comment:1 Changed 6 years ago by andrew

  • Status changed from new to closed
  • Resolution set to wontfix
  • Milestone set to 0.7.1

This is intentional; migrations are python modules, and thus should have valid module names. I'm going to have to WONTFIX.

It's annoying that 0.6 and below let you put in hyphens, and that import happily accepts very strange module names. You can fix this by renaming them to use underscores, and then running a query over the migration column in the south_migrationhistory table to replace - with _.

Note: See TracTickets for help on using tickets.