Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change the migration to only drop foreign and unique keys (#18842)
Patryk Zawadzkif47392d874ca
diff --git a/saleor/discount/migrations/0052_drop_sales_constraints.py b/saleor/discount/migrations/0052_drop_sales_constraints.pyindex 6249906b97..eccaf51112 100644--- a/saleor/discount/migrations/0052_drop_sales_constraints.py+++ b/saleor/discount/migrations/0052_drop_sales_constraints.py@@ -26,6 +26,7 @@ beginselect constraint_namefrom information_schema.table_constraintswhere table_name=tab+ and constraint_type in ('FOREIGN KEY', 'UNIQUE')) loopexecute concat('ALTER TABLE '||tab||' DROP CONSTRAINT IF EXISTS "'||r.constraint_name||'"'