Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django drop database postgres

find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc"  -delete

# Check status of files >
python3 manage.py showmigrations

create news migrations 

Enjoy:)
 
PREVIOUS NEXT
Tagged: #django #drop #database #postgres
ADD COMMENT
Topic
Name
5+1 =