Modify

Ticket #418 (closed defect: wontfix)

Opened 4 years ago

Last modified 4 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:

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

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

Change History

Changed 4 years ago by cmkmrr

comment:1 Changed 4 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 _.

View

Add a comment

Modify Ticket

Action
as closed
Author


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

 
Note: See TracTickets for help on using tickets.