postgres-init: enable citext extension on asxpio db
All checks were successful
Deploy storage stack / deploy (push) Successful in 14s

Needed for case-insensitive email columns in the asxpio users table.
Runs as the Postgres superuser inside the init container; idempotent.
This commit is contained in:
Sergei Poljanski 2026-05-26 19:07:16 +03:00
commit 459ee15f00
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -23,7 +23,14 @@ ensure_db() {
fi
}
ensure_extension() {
db="$1"
ext="$2"
psql -d "${db}" -c "CREATE EXTENSION IF NOT EXISTS \"${ext}\";"
}
ensure_role "asxpio" "${ASXPIO_DB_PASSWORD}"
ensure_db "asxpio" "asxpio"
ensure_extension "asxpio" "citext"
echo "postgres-init: done"