0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:17:50 +01:00
posthog/bin/migrate-check
Frank Hamand 9939786d63
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
2023-10-11 15:51:43 +01:00

9 lines
198 B
Bash
Executable File

#!/bin/bash
set -e
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