Skip to content

Commit

Permalink
Force fake migrate on kpi initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
gushil committed Jan 2, 2024
1 parent 82a183b commit ae94fe7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docker/init.bash
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ fi
/bin/bash "${INIT_PATH}/wait_for_mongo.bash"
/bin/bash "${INIT_PATH}/wait_for_postgres.bash"

if [[ -z $INITIAL_SETUP ]]; then
echo 'Running fake migrations.'
gosu "${UWSGI_USER}" python manage.py migrate bossoidc2 0002_auto_20201110_2129 --fake --noinput
gosu "${UWSGI_USER}" python manage.py migrate bossoidc2 0002_keycloak_subdomain --fake --noinput
gosu "${UWSGI_USER}" python manage.py migrate bossoidc2 0003_keycloak_usertype --fake --noinput
fi
echo 'Running fake migrations.'
gosu "${UWSGI_USER}" python manage.py migrate bossoidc2 0002_auto_20201110_2129 --fake --noinput
gosu "${UWSGI_USER}" python manage.py migrate bossoidc2 0002_keycloak_subdomain --fake --noinput
gosu "${UWSGI_USER}" python manage.py migrate bossoidc2 0003_keycloak_usertype --fake --noinput

echo 'Running migrations...'
gosu "${UWSGI_USER}" python manage.py migrate --noinput
Expand Down

0 comments on commit ae94fe7

Please sign in to comment.