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:
@ -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
|
||||
|
Reference in New Issue
Block a user