Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using shorthand names & __latest__ for MigrationTargets #337

Open
jasperfirecai2 opened this issue Feb 3, 2023 · 0 comments
Open

Comments

@jasperfirecai2
Copy link

jasperfirecai2 commented Feb 3, 2023

When running migrations in the commandline, it is possible to use just <app_name> <leading number> as arguments. However, when defining MigrationTargets for apply_initial_migration or apply_tested_migration, the full name is required.

Having only leading numbers be accepted would have it be more consistent with the manage.py commandline, but also wont break test cases in case a migration is renamed (e.g. from auto-generated to manually named)

__latest__ Would be a great shortcut for tests to check from <some initial state> to the newest version always.

@jasperfirecai2 jasperfirecai2 changed the title Allow using shorthand names for MigrationTarget's Allow using shorthand names & __latest__ for MigrationTargets Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant