2020-04-10 21:06:12 +00:00
|
|
|
#!/usr/bin/sh
|
|
|
|
sudo -u postgres sh -c "dropdb note_db && psql -c 'CREATE DATABASE note_db OWNER note;'";
|
|
|
|
echo 'reset db';
|
2020-05-26 21:53:13 +00:00
|
|
|
find apps/ -path "*/migrations/*.py*" -not -name "__init__.py" -delete
|
|
|
|
./manage.py makemigrations
|
2020-05-25 10:22:09 +00:00
|
|
|
./manage.py migrate
|
|
|
|
./manage.py loaddata initial
|