app-MAIL-temp/scripts/reset_local_db.sh

8 lines
219 B
Bash
Raw Normal View History

#!/bin/sh
export DB_URI=postgresql://myuser:mypassword@localhost:15432/simplelogin
echo 'drop schema public cascade; create schema public;' | psql $DB_URI
poetry run alembic upgrade head
poetry run flask dummy-data