We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 514cc62 commit 2be42bdCopy full SHA for 2be42bd
Dockerfile.migrations
@@ -14,7 +14,8 @@ COPY <<load.sh /
14
envsubst < /db/migrations/20230606172700__add_root_user.sql.envsubst > /db/migrations/20230606172700__add_root_user.sql
15
rm /db/migrations/20230606172700__add_root_user.sql.envsubst
16
17
-export CONNECTION_STRING_RW=$\{CONNECTION_STRING_RW\}?sslmode=disable
+[[ "$CONNECTION_STRING_RW" == *sslmode* ]] && export CONNECTION_STRING_RW=$\{CONNECTION_STRING_RW/no-verify/require\}
18
+
19
/usr/local/bin/dbmate -e CONNECTION_STRING_RW --no-dump-schema migrate
20
load.sh
21
RUN chmod +x /load.sh
0 commit comments