make migrations on the first run of the inventory app

This commit is contained in:
Andreas Zweili 2020-01-07 18:12:30 +01:00
parent bfea2ca2c1
commit a61f646ac0
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ if [ -f ./.second_run ]; then
python manage.py makemigrations
python manage.py migrate
else
python manage.py makemigrations inventory
python manage.py makemigrations
python manage.py migrate
python manage.py loaddata inventory

1
run.sh
View File

@ -4,6 +4,7 @@ if [ -f ./.second_run ]; then
python manage.py makemigrations
python manage.py migrate
else
python manage.py makemigrations inventory
python manage.py makemigrations
python manage.py migrate
python manage.py loaddata inventory