Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change max length of SKU to 255
Alexey Pyltsynfff0b6eefd01
diff --git a/saleor/order/migrations/0075_auto_20191006_1433.py b/saleor/order/migrations/0075_auto_20191006_1433.pynew file mode 100644index 0000000000..6b68ab37d5--- /dev/null+++ b/saleor/order/migrations/0075_auto_20191006_1433.py@@ -0,0 +1,18 @@+# Generated by Django 2.2.5 on 2019-10-06 19:33++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ('order', '0074_auto_20190930_0731'),+ ]++ operations = [+ migrations.AlterField(+ model_name='orderline',+ name='product_sku',+ field=models.CharField(max_length=255),+ ),+ ]diff --git a/saleor/order/models.py b/saleor/order/models.pyindex 133ca6a3e0..986bbb8074 100644--- a/saleor/order/models.py+++ b/saleor/order/models.py@@ -364,7 +364,7 @@ class OrderLine(models.Model):variant_name = models.CharField(max_length=255, default="", blank=True)translated_product_name = models.CharField(max_length=386, default="", blank=True)translated_variant_name = models.CharField(max_length=255, default="", blank=True)- product_sku = models.CharField(max_length=32)+ product_sku = models.CharField(max_length=255)is_shipping_required = models.BooleanField()quantity = models.IntegerField(validators=[MinValueValidator(1)])quantity_fulfilled = models.IntegerField(diff --git a/saleor/product/migrations/0109_auto_20191006_1433.py b/saleor/product/migrations/0109_auto_20191006_1433.pynew file mode 100644index 0000000000..1c668ddb2b--- /dev/null+++ b/saleor/product/migrations/0109_auto_20191006_1433.py@@ -0,0 +1,18 @@+# Generated by Django 2.2.5 on 2019-10-06 19:33++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ('product', '0108_auto_20191003_0422'),+ ]++ operations = [+ migrations.AlterField(+ model_name='productvariant',+ name='sku',+ field=models.CharField(max_length=255, unique=True),+ ),+ ]diff --git a/saleor/product/models.py b/saleor/product/models.pyindex e45bbf4298..8f2f068985 100644--- a/saleor/product/models.py+++ b/saleor/product/models.py@@ -412,7 +412,7 @@ class ProductVariantQueryset(models.QuerySet):class ProductVariant(ModelWithMetadata):- sku = models.CharField(max_length=32, unique=True)+ sku = models.CharField(max_length=255, unique=True)name = models.CharField(max_length=255, blank=True)currency = models.CharField(max_length=settings.DEFAULT_CURRENCY_CODE_LENGTH,