Skip to content
Snippets Groups Projects
Commit 9e8d0901 authored by Pierre-antoine Comby's avatar Pierre-antoine Comby
Browse files

restart postgres to disconnect everybody

parent 559be286
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/sh #!/usr/bin/sh
sudo service postgresql stop
sudo service postgresql start
sudo -u postgres sh -c "dropdb note_db && psql -c 'CREATE DATABASE note_db OWNER note;'"; sudo -u postgres sh -c "dropdb note_db && psql -c 'CREATE DATABASE note_db OWNER note;'";
echo 'reset db'; echo 'reset db';
find apps/ -path "*/migrations/*.py*" -not -name "__init__.py" -delete find apps/ -path "*/migrations/*.py*" -not -name "__init__.py" -delete
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment