simple-login/reset_test_db.sh
2022-05-10 23:34:57 +02:00

7 lines
184 B
Bash
Executable file

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