0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 13:39:22 +01:00

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
This commit is contained in:
Frank Hamand 2023-10-11 15:51:43 +01:00 committed by GitHub
parent 31c1cdf301
commit 9939786d63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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