Skip to content

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

Recreate invoice migration after master merge, increase field limits

Tomasz Szymańskic4e3e29ec988
diff --git a/saleor/order/migrations/0079_invoice.py b/saleor/order/migrations/0080_invoice.py
similarity index 80%
rename from saleor/order/migrations/0079_invoice.py
rename to saleor/order/migrations/0080_invoice.py
index 26afe9c104..647341902d 100644
--- a/saleor/order/migrations/0079_invoice.py
+++ b/saleor/order/migrations/0080_invoice.py
@@ -1,4 +1,4 @@
-# Generated by Django 2.2.10 on 2020-03-04 10:17
+# Generated by Django 2.2.10 on 2020-03-05 08:30
import django.db.models.deletion
from django.db import migrations, models
@@ -7,7 +7,7 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
- ("order", "0078_auto_20200221_0257"),
+ ("order", "0079_auto_20200304_0752"),
]
operations = [
@@ -23,9 +23,9 @@ class Migration(migrations.Migration):
verbose_name="ID",
),
),
- ("number", models.CharField(max_length=64)),
+ ("number", models.CharField(max_length=255)),
("created", models.DateTimeField(auto_now_add=True)),
- ("url", models.URLField(max_length=256)),
+ ("url", models.URLField(max_length=2048)),
(
"order",
models.ForeignKey(
diff --git a/saleor/order/models.py b/saleor/order/models.py
index fa3aa8c617..6f9b8b0b12 100644
--- a/saleor/order/models.py
+++ b/saleor/order/models.py
@@ -499,6 +499,6 @@ class OrderEvent(models.Model):
class Invoice(models.Model):
order = models.ForeignKey(Order, null=True, on_delete=models.SET_NULL)
- number = models.CharField(max_length=64)
+ number = models.CharField(max_length=255)
created = models.DateTimeField(auto_now_add=True)
- url = models.URLField(max_length=256)
+ url = models.URLField(max_length=2048)