1
0
mirror of https://gitlab.crans.org/bde/nk20-scripts synced 2025-06-26 01:27:28 +02:00

make things cleaner

This commit is contained in:
Pierre-antoine Comby
2020-05-26 23:53:13 +02:00
parent 985f7c7bcd
commit 5af336fff3
4 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,7 @@
#!/usr/bin/sh
sudo -u postgres sh -c "dropdb note_db && psql -c 'CREATE DATABASE note_db OWNER note;'";
echo 'reset db';
source "env/bin/activate"
find apps/ -path "*/migrations/*.py*" -not -name "__init__.py" -delete
./manage.py makemigrations
./manage.py migrate
./manage.py loaddata initial