Skip to content

[qa] Simplify migration checks #111

@nemesifier

Description

@nemesifier

We currently have two migration checks:

  • one checks whether there are pending migrations to create (./manage.py makemigrations --dry-run)
  • one checks whether the names of the migration files have auto in them

The problem is that we have to specify both --migration-module and --migration-path.
I think we can avoid doing this and have only one command line flag.

I would get rid of --migration-path, keeping only --migration-module, although I would rename this flag to --migration-modules while keeping backward compatibility with the old flag.

--migration-path should be ignored (printing a deprecation warning).

We will need to upgrade the modules using this: https://github.com/search?q=org%3Aopenwisp+%27--migration-path%27&type=Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestEasy issues for attracting Hacktoberfest participants.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions