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:)
REVOKE CONNECT ON DATABASE digipm FROM public;
SELECT pg_terminate_backend(pg_stat_activity.pid)
FROM pg_stat_activity
WHERE pg_stat_activity.datname = 'digipm';