feat: add citext to default db template (#5069)

This commit is contained in:
Robert Sparks 2023-02-01 15:12:38 -06:00 committed by GitHub
parent 189018a879
commit 24bb789cd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -9,6 +9,7 @@ ENV POSTGRES_DB=ietf
ENV POSTGRES_HOST_AUTH_METHOD=trust
ENV PGDATA=/data
COPY docker/scripts/db-load-default-extensions.sh /docker-entrypoint-initdb.d/
COPY docker/scripts/db-pg-import.sh /docker-entrypoint-initdb.d/
COPY ietf.dump /

View file

@ -0,0 +1,5 @@
#!/bin/bash
set -e
psql -U django -d template1 -v ON_ERROR_STOP=1 -c 'CREATE EXTENSION IF NOT EXISTS citext;'