Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

django fake initial migration

python manage.py migrate --fake-initial
Comment

fake migration django

python manage.py migrate --fake migration-file-name
Comment

django re apply faked migration

python manage.py migrate --fake app_name zero
Comment

django reapply faked migration

You should first set your current state to 0003 with --fake (assuming 0003 is the last migration you really have applied):

> python manage.py migrate --fake core 0003

And then proceed as usual:

> python manage.py migrate core
Comment

PREVIOUS NEXT
Code Example
Shell :: bash copy directory 
Shell :: redis cli connect to remote server with password 
Shell :: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. plt.show() 
Shell :: mac command not found: sshpass 
Shell :: adb devices offline 
Shell :: time machine speed up 
Shell :: powercli install 
Shell :: linux kill all python processes 
Shell :: aws cli create new profile 
Shell :: delete all container and images docker 
Shell :: count number of files linux 
Shell :: error install cocoapods 
Shell :: windows services list 
Shell :: apt install zbar 
Shell :: how to install tar.gz in ubuntu 
Shell :: how to generate ssh key in linux 
Shell :: install geopandas 
Shell :: bower 
Shell :: git commits by author 
Shell :: sync show progress 
Shell :: linux install fzf 
Shell :: convert file with liberoffice 
Shell :: making file executable linux 
Shell :: git cli login 
Shell :: git init repo 
Shell :: linux tail colorful 
Shell :: installing git on ec2 
Shell :: arch linux remove nodejs 
Shell :: how to install .deb file in ubuntu from terminal 
Shell :: ngx translate install 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =