robosats/dev_utils/reinitiate_db.sh
2022-01-04 16:13:08 -08:00

15 lines
272 B
Bash

#!/bin/bash
rm db.sqlite3
rm -R api/migrations
rm -R frontend/migrations
rm -R frontend/static/assets/avatars
python3 manage.py makemigrations
python3 manage.py makemigrations api
python3 manage.py migrate
python3 manage.py createsuperuser
python3 manage.py runserver