app-MAIL-temp/scripts/reset_local_db.sh
2024-07-25 16:18:49 +02:00

8 lines
212 B
Bash
Executable File

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