8 lines
268 B
Bash
Executable File
8 lines
268 B
Bash
Executable File
#!/usr/bin/sh
|
|
sudo -u postgres sh -c "dropdb note_db && psql -c 'CREATE DATABASE note_db OWNER note;'";
|
|
echo 'reset db';
|
|
find apps/ -path "*/migrations/*.py*" -not -name "__init__.py" -delete
|
|
./manage.py makemigrations
|
|
./manage.py migrate
|
|
./manage.py loaddata initial
|