Skip to content

Commit 485782c

Browse files
authored
feat(ch): optionally disable migrations (#2715)
1 parent 61b338b commit 485782c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/scripts/entrypoint.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ echo "Running prisma migrations"
1010
pnpm --filter @trigger.dev/database db:migrate:deploy
1111
echo "Prisma migrations done"
1212

13-
if [ -n "$CLICKHOUSE_URL" ]; then
13+
if [ -n "$CLICKHOUSE_URL" ] && [ "$SKIP_CLICKHOUSE_MIGRATIONS" != "1" ]; then
1414
# Run ClickHouse migrations
1515
echo "Running ClickHouse migrations..."
1616
export GOOSE_DRIVER=clickhouse
@@ -30,6 +30,8 @@ if [ -n "$CLICKHOUSE_URL" ]; then
3030
export GOOSE_MIGRATION_DIR=/triggerdotdev/internal-packages/clickhouse/schema
3131
/usr/local/bin/goose up
3232
echo "ClickHouse migrations complete."
33+
elif [ "$SKIP_CLICKHOUSE_MIGRATIONS" = "1" ]; then
34+
echo "SKIP_CLICKHOUSE_MIGRATIONS=1, skipping ClickHouse migrations."
3335
else
3436
echo "CLICKHOUSE_URL not set, skipping ClickHouse migrations."
3537
fi

0 commit comments

Comments
 (0)