mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Update makefile and docs
This commit is contained in:
parent
e4fc44c135
commit
d7f969613e
6
Makefile
6
Makefile
@ -7,8 +7,10 @@ clean:
|
||||
rm -rf .tox
|
||||
rm -f .coverage
|
||||
|
||||
update: backup migrate
|
||||
|
||||
# Perform database migrations (after schema changes are made)
|
||||
migrate: backup
|
||||
migrate:
|
||||
python3 InvenTree/manage.py makemigrations common
|
||||
python3 InvenTree/manage.py makemigrations company
|
||||
python3 InvenTree/manage.py makemigrations part
|
||||
@ -64,4 +66,4 @@ backup:
|
||||
python3 InvenTree/manage.py dbbackup
|
||||
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
|
@ -29,7 +29,13 @@ Perform Migrations
|
||||
|
||||
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
|
||||
--------------
|
||||
|
Loading…
Reference in New Issue
Block a user