Skip to content

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

Fix migration issue between 3.0 and main (#9323)

Tomasz Szymańskifec80cd63436
diff --git a/saleor/attribute/migrations/0017_auto_20210811_0701.py b/saleor/attribute/migrations/0017_auto_20210811_0701.py
index 0cbc8f3af3..9c19ff07e7 100644
--- a/saleor/attribute/migrations/0017_auto_20210811_0701.py
+++ b/saleor/attribute/migrations/0017_auto_20210811_0701.py
@@ -33,6 +33,6 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name="attributevalue",
name="value",
- field=models.CharField(blank=True, default="", max_length=9),
+ field=models.CharField(blank=True, default="", max_length=100),
),
]
diff --git a/saleor/attribute/models/base.py b/saleor/attribute/models/base.py
index 89a04ea528..e977bbc186 100644
--- a/saleor/attribute/models/base.py
+++ b/saleor/attribute/models/base.py
@@ -208,7 +208,7 @@ class AttributeTranslation(Translation):
class AttributeValue(SortableModel):
name = models.CharField(max_length=250)
# keeps hex code color value in #RRGGBBAA format
- value = models.CharField(max_length=9, blank=True, default="")
+ value = models.CharField(max_length=100, blank=True, default="")
slug = models.SlugField(max_length=255, allow_unicode=True)
file_url = models.URLField(null=True, blank=True)
content_type = models.CharField(max_length=50, null=True, blank=True)