re migration in django code example
Example 1: django make migrations
$ python3 manage.py makemigrations
$ python3 manage.py migrate
Example 2: delete all migrations django
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc" -delete
Example 3: how to create migrations in django
//to create migration files
python manage.py makemigrations
//to migrate migration files
python manage.py migrate
Example 4: windows 10 reset django migrations
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc" -delete