Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix drop Django Auth migration (#11642)

Filip Owczarekb7b423c15e85
diff --git a/Dockerfile b/Dockerfile
index 277985eaec..4090e04594 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,6 +10,8 @@ RUN apt-get -y update \
# Install Python dependencies
COPY requirements_dev.txt /app/
WORKDIR /app
+## sphinxcontrib-applehelp installed due to https://github.com/saleor/saleor/issues/11664
+RUN pip install sphinxcontrib-applehelp==1.0.2
RUN pip install -r requirements_dev.txt
### Final image
diff --git a/saleor/app/migrations/0018_auto_20221122_1148.py b/saleor/app/migrations/0018_auto_20221122_1148.py
index 3944051b38..22c4634b5b 100644
--- a/saleor/app/migrations/0018_auto_20221122_1148.py
+++ b/saleor/app/migrations/0018_auto_20221122_1148.py
@@ -5,7 +5,9 @@ from django.db import migrations, models
# Forward helpers
DROP_OLD_CONSTRAINTS = """
ALTER TABLE app_app_permissions
- DROP CONSTRAINT account_serviceaccou_permission_id_449791f0_fk_auth_perm;
+ DROP CONSTRAINT IF EXISTS account_serviceaccou_permission_id_449791f0_fk_auth_perm;
+ALTER TABLE app_app_permissions
+ DROP CONSTRAINT IF EXISTS app_app_permissions_permission_id_defe4a88_fk_auth_perm;
ALTER TABLE app_appextension_permissions
DROP CONSTRAINT app_appextension_per_permission_id_cb6c3ce0_fk_auth_perm;