Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
remove unique constraint (#15779)
Krzysztof Waliczek09acf7bd0d21
diff --git a/saleor/attribute/migrations/0040_clear_assignedattributes.py b/saleor/attribute/migrations/0040_clear_assignedattributes.pyindex 5684e04fd1..7e336f5bf0 100644--- a/saleor/attribute/migrations/0040_clear_assignedattributes.py+++ b/saleor/attribute/migrations/0040_clear_assignedattributes.py@@ -19,10 +19,6 @@ class Migration(migrations.Migration):ALTER TABLE attribute_assignedproductattributevalueALTER COLUMN product_id SET NOT NULL;- ALTER TABLE attribute_assignedproductattributevalue- ADD CONSTRAINT attribute_assignedproduc_value_id_product_id_6f6deb31_uniq- UNIQUE (value_id, product_id);-DROP TABLE attribute_assignedproductattribute;""",reverse_sql="""@@ -32,9 +28,6 @@ class Migration(migrations.Migration):ALTER TABLE attribute_assignedproductattributevalueALTER COLUMN product_id DROP NOT NULL;- ALTER TABLE attribute_assignedproductattributevalue- DROP CONSTRAINT IF EXISTS attribute_assignedproduc_value_id_product_id_6f6deb31_uniq;-CREATE TABLE attribute_assignedproductattribute (id serial NOT NULL PRIMARY KEY,assignment_id integer,@@ -50,10 +43,6 @@ class Migration(migrations.Migration):ALTER TABLE attribute_assignedpageattributevalueALTER COLUMN page_id SET NOT NULL;- ALTER TABLE attribute_assignedpageattributevalue- ADD CONSTRAINT attribute_assignedpageat_value_id_page_id_851cd501_uniq- UNIQUE (value_id, page_id);-DROP TABLE attribute_assignedpageattribute;""",reverse_sql="""@@ -63,9 +52,6 @@ class Migration(migrations.Migration):ALTER TABLE attribute_assignedpageattributevalueALTER COLUMN page_id DROP NOT NULL;- ALTER TABLE attribute_assignedpageattributevalue- DROP CONSTRAINT IF EXISTS attribute_assignedpageat_value_id_page_id_851cd501_uniq;-CREATE TABLE attribute_assignedpageattribute (id serial NOT NULL PRIMARY KEY,assignment_id integer,