diff --git a/docker/s6-rc.d/init/init.sh b/docker/s6-rc.d/init/init.sh index 43eba497..676b97ca 100755 --- a/docker/s6-rc.d/init/init.sh +++ b/docker/s6-rc.d/init/init.sh @@ -26,10 +26,10 @@ python3 manage.py check # Run the database migrations if is_enabled "${RUN_MIGRATIONS:-False}"; then - # Fix the User model - echo "Fixing the User model" - echo "INSERT INTO django_migrations (app, name, applied) SELECT 'users', '0001_initial', CURRENT_TIMESTAMP WHERE NOT EXISTS (SELECT app FROM django_migrations WHERE app='users' AND name='0001_initial');" | python3 manage.py dbshell - echo "UPDATE django_content_type SET app_label = 'users' WHERE app_label = 'auth' and model = 'user';" | python manage.py dbshell + # # Fix the User model + # echo "Fixing the User model" + # echo "INSERT INTO django_migrations (app, name, applied) SELECT 'users', '0001_initial', CURRENT_TIMESTAMP WHERE NOT EXISTS (SELECT app FROM django_migrations WHERE app='users' AND name='0001_initial');" | python3 manage.py dbshell + # echo "UPDATE django_content_type SET app_label = 'users' WHERE app_label = 'auth' and model = 'user';" | python manage.py dbshell # Run the actual migrations echo "Migrating database"