Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

revert a migration django

python manage.py migrate <your-app> <migration number>
# eg
python manage.py migrate my_app 0001
Comment

reverse a django migration

# You need to identify the last migration to which you want
# to reverse and use it as the migration target

python manage.py migrate my_app_name target_migration
Comment

PREVIOUS NEXT
Code Example
Shell :: grep search in file bash 
Shell :: bash if not 
Shell :: list pid bash 
Shell :: ssh key exchange 
Shell :: python zlib 
Shell :: creating icon for nativescript app 
Shell :: sudo rename command 
Shell :: api to access gitlab varaible 
Shell :: shutdown command linux 
Shell :: postgresql.conf position 
Shell :: azure devops set environment variable powershell 
Shell :: how to speed up internet connection ubuntu 20 
Shell :: can not login kali linux 
Shell :: docker get in python container 
Shell :: rpm uninstall package 
Shell :: git remove files untracked 
Shell :: how to download files using cmd 
Shell :: archive file 
Shell :: vault installation 
Shell :: shutdown shortcut ubuntu 
Shell :: npm commands 
Shell :: bash create user with encrypted password 
Shell :: Create Boxes Around Text 
Shell :: git unstash 
Shell :: pwd in command prompt 
Shell :: what to do with the git config 
Shell :: mv linux command 
Shell :: run cron job as specific user 
Shell :: linux ssh into machine with private key 
Shell :: How to delete files in linxu terminal 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =