mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Fixes for migrate target in makefile
This commit is contained in:
		@@ -5,7 +5,7 @@
 | 
				
			|||||||
database:
 | 
					database:
 | 
				
			||||||
  # Example configuration - sqlite (default)
 | 
					  # Example configuration - sqlite (default)
 | 
				
			||||||
  ENGINE: django.db.backends.sqlite3
 | 
					  ENGINE: django.db.backends.sqlite3
 | 
				
			||||||
  NAME: inventree_db.sqlite3 
 | 
					  NAME: '../inventree_default_db.sqlite3' 
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  # For more complex database installations, further parameters are required
 | 
					  # For more complex database installations, further parameters are required
 | 
				
			||||||
  # Refer to the django documentation for full list of options
 | 
					  # Refer to the django documentation for full list of options
 | 
				
			||||||
@@ -41,11 +41,11 @@ cors:
 | 
				
			|||||||
# MEDIA_ROOT is the local filesystem location for storing uploaded files
 | 
					# MEDIA_ROOT is the local filesystem location for storing uploaded files
 | 
				
			||||||
# By default, it is stored in a directory named 'media' local to the InvenTree directory
 | 
					# By default, it is stored in a directory named 'media' local to the InvenTree directory
 | 
				
			||||||
# This should be changed for a production installation
 | 
					# This should be changed for a production installation
 | 
				
			||||||
media_root: './media'
 | 
					media_root: '../inventree_media'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# STATIC_ROOT is the local filesystem location for storing static files
 | 
					# STATIC_ROOT is the local filesystem location for storing static files
 | 
				
			||||||
# By default it is stored in a directory named 'static' local to the InvenTree directory
 | 
					# By default it is stored in a directory named 'static' local to the InvenTree directory
 | 
				
			||||||
static_root: './static'
 | 
					static_root: '../inventree_static'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Logging options
 | 
					# Logging options
 | 
				
			||||||
log_queries: False
 | 
					log_queries: False
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										22
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								Makefile
									
									
									
									
									
								
							@@ -11,26 +11,20 @@ update: backup install migrate
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Perform database migrations (after schema changes are made)
 | 
					# Perform database migrations (after schema changes are made)
 | 
				
			||||||
migrate:
 | 
					migrate:
 | 
				
			||||||
	python3 InvenTree/manage.py makemigrations common
 | 
						cd InvenTree && python3 manage.py makemigrations
 | 
				
			||||||
	python3 InvenTree/manage.py makemigrations company
 | 
					 | 
				
			||||||
	python3 InvenTree/manage.py makemigrations part
 | 
					 | 
				
			||||||
	python3 InvenTree/manage.py makemigrations stock
 | 
					 | 
				
			||||||
	python3 InvenTree/manage.py makemigrations build
 | 
					 | 
				
			||||||
	python3 InvenTree/manage.py makemigrations order
 | 
					 | 
				
			||||||
	python3 InvenTree/manage.py makemigrations
 | 
					 | 
				
			||||||
	cd InvenTree && python3 manage.py migrate
 | 
						cd InvenTree && python3 manage.py migrate
 | 
				
			||||||
	cd InvenTree && python3 manage.py migrate --run-syncdb
 | 
						cd InvenTree && python3 manage.py migrate --run-syncdb
 | 
				
			||||||
	python3 InvenTree/manage.py check
 | 
						cd InvenTree && python3 manage.py check
 | 
				
			||||||
	cd InvenTree && python3 manage.py collectstatic
 | 
						cd InvenTree && python3 manage.py collectstatic
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Install all required packages
 | 
					# Install all required packages
 | 
				
			||||||
install:
 | 
					install:
 | 
				
			||||||
	pip3 install -U -r requirements.txt
 | 
						pip3 install -U -r requirements.txt
 | 
				
			||||||
	python3 InvenTree/setup.py
 | 
						cd InvenTree && python3 setup.py
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Create a superuser account
 | 
					# Create a superuser account
 | 
				
			||||||
superuser:
 | 
					superuser:
 | 
				
			||||||
	python3 InvenTree/manage.py createsuperuser
 | 
						cd InvenTree && python3 manage.py createsuperuser
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Install pre-requisites for mysql setup
 | 
					# Install pre-requisites for mysql setup
 | 
				
			||||||
mysql:
 | 
					mysql:
 | 
				
			||||||
@@ -48,8 +42,8 @@ style:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Run unit tests
 | 
					# Run unit tests
 | 
				
			||||||
test:
 | 
					test:
 | 
				
			||||||
	python3 InvenTree/manage.py check
 | 
						cd InvenTree && python3 manage.py check
 | 
				
			||||||
	python3 InvenTree/manage.py test build common company order part stock 
 | 
						cd InvenTree && python3 manage.py test build common company order part stock 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Run code coverage
 | 
					# Run code coverage
 | 
				
			||||||
coverage:
 | 
					coverage:
 | 
				
			||||||
@@ -67,7 +61,7 @@ docs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Make database backup
 | 
					# Make database backup
 | 
				
			||||||
backup:
 | 
					backup:
 | 
				
			||||||
	python3 InvenTree/manage.py dbbackup
 | 
						cd InvenTree && python3 manage.py dbbackup
 | 
				
			||||||
	python3 InvenTree/manage.py mediabackup
 | 
						cd InvenTree && python3 manage.py mediabackup
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: clean migrate superuser install mysql postgresql style test coverage docreqs docs backup update
 | 
					.PHONY: clean migrate superuser install mysql postgresql style test coverage docreqs docs backup update
 | 
				
			||||||
		Reference in New Issue
	
	Block a user