12 lines
406 B
Bash
Executable File
12 lines
406 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Resetting PostgreSQL database..."
|
|
|
|
# Connect to PostgreSQL and reset the database (without -t for TTY)
|
|
docker exec -i placebo-postgres-dev psql -U placebo_user -d postgres <<EOF
|
|
DROP DATABASE IF EXISTS placebo_backend_db;
|
|
CREATE DATABASE placebo_backend_db;
|
|
EOF
|
|
|
|
echo "Database reset complete!"
|
|
echo "The new schema will be created when the backend starts with DATABASE_SYNCHRONIZE=true" |