Skip to content

Instantly share code, notes, and snippets.

@alidevhere
Last active May 28, 2022 10:51
Show Gist options
  • Save alidevhere/e3fd617752f15c566992f7b209242ef8 to your computer and use it in GitHub Desktop.
Save alidevhere/e3fd617752f15c566992f7b209242ef8 to your computer and use it in GitHub Desktop.
Reset Django Database migrations

Reset Django Migrations

1-Delete Schemma 2- find . -path "/migrations/.py" -not -name "init.py" -delete 3- find . -path "/migrations/.pyc" -delete 4- python manage.py makemigrations 5- python manage.py migrate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment