Update makefile and docs

This commit is contained in:
Oliver Walters 2019-09-08 20:45:01 +10:00
parent e4fc44c135
commit d7f969613e
2 changed files with 11 additions and 3 deletions

View File

@ -7,8 +7,10 @@ clean:
rm -rf .tox rm -rf .tox
rm -f .coverage rm -f .coverage
update: backup migrate
# Perform database migrations (after schema changes are made) # Perform database migrations (after schema changes are made)
migrate: backup migrate:
python3 InvenTree/manage.py makemigrations common python3 InvenTree/manage.py makemigrations common
python3 InvenTree/manage.py makemigrations company python3 InvenTree/manage.py makemigrations company
python3 InvenTree/manage.py makemigrations part python3 InvenTree/manage.py makemigrations part
@ -64,4 +66,4 @@ backup:
python3 InvenTree/manage.py dbbackup python3 InvenTree/manage.py dbbackup
python3 InvenTree/manage.py mediabackup python3 InvenTree/manage.py mediabackup
.PHONY: clean migrate superuser install mysql style test coverage docreqs docs backup .PHONY: clean migrate superuser install mysql style test coverage docreqs docs backup update

View File

@ -29,7 +29,13 @@ Perform Migrations
Updating the database is as simple as calling the makefile target: Updating the database is as simple as calling the makefile target:
``make migrate`` ``make update``
This command performs the following steps:
* Backup database entries and uploaded media files
* Perform required database schema changes
* Collect required static files
Restart Server Restart Server
-------------- --------------