We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 514cc62 commit 706bcd6Copy full SHA for 706bcd6
Dockerfile.migrations
@@ -14,7 +14,15 @@ 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
+case "$CONNECTION_STRING_RW" in
18
+ *sslmode*)
19
+ export CONNECTION_STRING_RW=$\{CONNECTION_STRING_RW/no-verify/disable\}
20
+ ;;
21
+ *)
22
+ export CONNECTION_STRING_RW=$\{CONNECTION_STRING_RW\}?sslmode=disable
23
24
+esac
25
+
26
/usr/local/bin/dbmate -e CONNECTION_STRING_RW --no-dump-schema migrate
27
load.sh
28
RUN chmod +x /load.sh
0 commit comments