Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django migrate model

python manage.py makemigrations
python manage.py migrate --fake
python manage.py migrate your_app zero

$ manage.py migrate --fake <appname> zero
$ rm -rf migrations
$ manage.py makemigrations <appname>
$ manage.py migrate --fake
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #django #migrate #model
ADD COMMENT
Topic
Name
8+4 =