File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ echo "Running prisma migrations"
1010pnpm --filter @trigger.dev/database db:migrate:deploy
1111echo " 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."
3335else
3436 echo " CLICKHOUSE_URL not set, skipping ClickHouse migrations."
3537fi
You can’t perform that action at this time.
0 commit comments