Add possibility to only test a certain apps or exclude some
This commit is contained in:
1 parent
5cbd22f6da
commit
69cf2fe7b5
2 files changed
+18
-5
No files matched your search
@@ -4,11 +4,13 @@ Detect backward incompatible migrations for your django projects. All in one fil
|
||||
|
||||
## Usage
|
||||
|
||||
`python migration_checker.py DJANGO_PROJECT_FOLDER [GIT_COMMIT_ID] [--ignore-name-contains=IGNORE_NAME_CONTAINS]`
|
||||
`python migration_checker.py DJANGO_PROJECT_FOLDER [GIT_COMMIT_ID] [--ignore-name-contains=IGNORE_NAME_CONTAINS] [--include-apps INCLUDE_APPS [INCLUDE_APPS ...] | --exclude-apps EXCLUDE_APPS [EXCLUDE_APPS ...]]`
|
||||
|
||||
* `DJANGO_PROJECT_FOLDER` - an absolute or relative path to the django project.
|
||||
* `GIT_COMMIT_ID` - if specified, only migrations since this commit will be taken into account. If not specified, the initial repo commit will be used.
|
||||
* `--ignore-name-contains IGNORE_NAME_CONTAINS`- ignore migrations containing this name
|
||||
* `--include-apps INCLUDE_APPS [INCLUDE_APPS ...]` - check only migrations that are in the specified django apps
|
||||
* `--exclude-apps EXCLUDE_APPS [EXCLUDE_APPS ...]` - ignore migrations that are in the specified django apps
|
||||
|
||||
## Requirements
|
||||
|
||||
@@ -29,7 +31,6 @@ More test are to be written.
|
||||
## Improvements
|
||||
|
||||
* More tests (always!)
|
||||
* Possibility to only check certain apps within the project (and/or exclude certain ones)
|
||||
* Detect data migration (not only scheme migrations)
|
||||
* Detection dependent on specified database (mysql, postgresql, ...)
|
||||
|
||||
|
||||
Reference in new issue
Block a user