Skip to content

Commit 2fe55d0

Browse files
committed
Patch the migrations for query builder generation to run in a single transaction
This prevents a CLI timeout & crash with complex migration files
1 parent f9cc9e5 commit 2fe55d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ set -e
8686

8787
chown -R gel:gel /dbschema src
8888

89+
# Run the migrations in a single transaction, so we don't hit a CLI timeout
90+
sed -i 's|schema-dir=/dbschema|schema-dir=/dbschema --single-transaction|' /usr/local/bin/docker-entrypoint-funcs.sh
91+
8992
# Hook `yarn gel:gen` into gel bootstrap.
9093
# This allows it to be ran in parallel to the db server running without a daemon
9194
mkdir -p /gel-bootstrap-late.d

0 commit comments

Comments
 (0)