Improve the way missing migrations are check. GitLab issue #278.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-04-03 01:20:44 -04:00
parent ed5d7cd812
commit 0bc6a42192
3 changed files with 9 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ help:
@echo "clean - Remove Python and build artifacts."
@echo "generate_setup - Create and updated setup.py"
@echo "check_readme - Checks validity of the README.rst file for PyPI publication."
@echo "check_missing_migrations - Make sure all models have proper migrations."
@echo "test-all - Run all tests."
@echo "test MODULE=<python module name> - Run tests for a single app, module or test class."
@@ -356,3 +357,7 @@ build:
check_readme:
python setup.py check -r -s
check_missing_migrations:
./manage.py makemigrations --dry-run --noinput --check

View File

@@ -430,6 +430,7 @@ Bugs fixed or issues closed
===========================
* `GitLab issue #262 <https://gitlab.com/mayan-edms/mayan-edms/issues/262>`_ Event notifications
* `GitLab issue #278 <https://gitlab.com/mayan-edms/mayan-edms/issues/278>`_ Detect non migrated models
* `GitLab issue #302 <https://gitlab.com/mayan-edms/mayan-edms/issues/302>`_ 'New Document' button available to users who do not have permission
* `GitLab issue #454 <https://gitlab.com/mayan-edms/mayan-edms/issues/454>`_ Invalid next month calculation in statistics app, causes failstop

View File

@@ -404,7 +404,7 @@ Release checklist
1. Check for missing migrations::
$ ./manage.py makemigrations
$ make check_missing_migrations
2. Synchronize translations::
@@ -419,14 +419,14 @@ Release checklist
6. Update requirements version in `setup.py`
7. Bump version in `mayan/__init__.py`
8. Check README.rst format with::
$ python setup.py check -r -s
or with::
$ make check_readme
9. Build source package and test::
$ make test_sdist_via_docker_ubuntu