Skip to content

Commit

Permalink
Merge pull request #119 from gushil/upstream-release-force-fake-migrate
Browse files Browse the repository at this point in the history
Force fake migrate on kpi initialization
  • Loading branch information
svadla-oc authored Jan 2, 2024
2 parents 82a183b + ae94fe7 commit 094cf76
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 094cf76

Please sign in to comment.