How to Reset Migrations
The project is still in the development environment and you want to perform a full clean up. You don’t mind throwing the whole database away.
Drop Database
psql
drop database "packs4jobs";
Remove migrations files
find . -path "*/migrations/*.py" -not -name "__init__.py" -not -name "case_insensitive.py" -delete
find . -path "*/migrations/*.pyc" -delete
Create Database
create database packs4jobs;
grant all privileges on database packs4jobs to packs4jobs;
python manage.py migrate core case_insensitive
Comments
Post a Comment