Modify ↓
Ticket #418 (closed defect: wontfix)
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: |
Description
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.
Attachments
Change History
comment:1 Changed 3 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.
