Modify

Ticket #1056 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 2 years ago

Soft-match dependencies

Reported by: r.tirrell@… Owned by: andrew
Priority: trivial Milestone: 1.0
Component: commands Version: unknown
Keywords: Cc:

Description

It'd be nice if migration dependency names could be specified in a similar way to migration target names at the command line, e.g., you could:

class Migration(DataMigration):
    depends_on = ((
        ('app', 0004),
        ('users', 0012)
    ))
    # Etc...

This doesn't look too difficult, but I'm not entirely sure where in the Migration or Migrations class the call to guess_migration should be made.

Attachments

Change History

comment:1 Changed 2 years ago by andrew

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

I don't think this is a wise idea (and I'm marking it WONTFIX) because it's too easy to get into a situation where the migration name is ambiguous (there can be more than one migration with the same number if there's been a VCS merge, for example, and South is designed to handle that), and then you'd have the situation where the migration would change from being well-specified to failing to load.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.