10 lines
352 B
Bash
10 lines
352 B
Bash
|
|
||
|
if [ -z $POSTGRES_PASSWORD ]; then
|
||
|
echo "POSTGRES_PASSWORD was missing in env"
|
||
|
exit 5
|
||
|
fi
|
||
|
|
||
|
# reload the schema
|
||
|
# @see https://postgrest.org/en/latest/references/schema_cache.html#schema-reloading
|
||
|
kubectl -n futureporn exec postgresql-primary-0 -- env PGPASSWORD=${POSTGRES_PASSWORD} psql -U postgres --command "NOTIFY pgrst, 'reload schema'"
|