From 9939786d63334c277a9fd32816bc86f0d0e3a040 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Wed, 11 Oct 2023 15:51:43 +0100 Subject: [PATCH] feat: Add env var to skip migration checks (#17915) Add env var to skip migration checks This will allow us to skip the checks in kubernetes pods that use initContainers but without effecting existing deploys or docker-compose --- bin/migrate-check | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/migrate-check b/bin/migrate-check index 43d5c39d127..c58236088bd 100755 --- a/bin/migrate-check +++ b/bin/migrate-check @@ -1,6 +1,8 @@ #!/bin/bash set -e -python manage.py migrate --check -python manage.py migrate_clickhouse --check -python manage.py run_async_migrations --check +if [ -z "$POSTHOG_SKIP_MIGRATION_CHECKS" ]; then + python manage.py migrate --check + python manage.py migrate_clickhouse --check + python manage.py run_async_migrations --check +fi