fp/scripts/postgres-drop.sh

10 lines
279 B
Bash
Raw Normal View History

2024-05-27 22:20:58 +00:00
2024-07-25 13:53:52 +00:00
if [ -z $POSTGRES_PASSWORD ]; then
echo "POSTGRES_PASSWORD was missing in env"
exit 5
fi
2024-05-27 22:20:58 +00:00
## drop futureporn_db
2024-07-30 20:34:25 +00:00
kubectl -n futureporn exec postgresql-primary -- env PGPASSWORD=${POSTGRES_PASSWORD} psql -U postgres --command "DROP DATABASE futureporn_db WITH (FORCE);"
2024-07-25 13:53:52 +00:00