Skip to content

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

Modify some migrations to report something

Grzegorz230e58131994
diff --git a/saleor/product/migrations/0167_digitalcontenturl_order_line_token.py b/saleor/product/migrations/0167_digitalcontenturl_order_line_token.py
index 908726e810..8841cf70fc 100644
--- a/saleor/product/migrations/0167_digitalcontenturl_order_line_token.py
+++ b/saleor/product/migrations/0167_digitalcontenturl_order_line_token.py
@@ -14,5 +14,5 @@ class Migration(migrations.Migration):
model_name="digitalcontenturl",
name="order_line_token",
field=models.UUIDField(null=True),
- ),
+ )
]
diff --git a/saleor/product/migrations/0168_fulfil_digitalcontenturl_orderline_token.py b/saleor/product/migrations/0168_fulfil_digitalcontenturl_orderline_token.py
index 211ce10aee..a5f085106e 100644
--- a/saleor/product/migrations/0168_fulfil_digitalcontenturl_orderline_token.py
+++ b/saleor/product/migrations/0168_fulfil_digitalcontenturl_orderline_token.py
@@ -15,9 +15,9 @@ class Migration(migrations.Migration):
"""
UPDATE product_digitalcontenturl
SET order_line_token = (
- SELECT token
- FROM order_orderline
- WHERE product_digitalcontenturl.line_id = order_orderline.id
+ SELECT token
+ FROM order_orderline
+ WHERE product_digitalcontenturl.line_id = order_orderline.id
)
WHERE line_id IS NOT NULL;
""",
diff --git a/saleor/product/migrations/0169_alter_digitalcontenturl_line.py b/saleor/product/migrations/0169_alter_digitalcontenturl_line.py
index 4aa582e0e8..7854bea482 100644
--- a/saleor/product/migrations/0169_alter_digitalcontenturl_line.py
+++ b/saleor/product/migrations/0169_alter_digitalcontenturl_line.py
@@ -15,12 +15,12 @@ class Migration(migrations.Migration):
model_name="digitalcontenturl",
name="line",
field=models.OneToOneField(
- blank=True,
- null=True,
- on_delete=django.db.models.deletion.CASCADE,
- related_name="digital_content_url",
- to="order.orderline",
- to_field="old_id",
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name="digital_content_url",
+ to="order.orderline",
+ to_field="old_id",
),
),
]
diff --git a/saleor/product/migrations/0170_rewrite_digitalcontenturl_orderline_relation.py b/saleor/product/migrations/0170_rewrite_digitalcontenturl_orderline_relation.py
index eed24d42f2..8a1983347b 100644
--- a/saleor/product/migrations/0170_rewrite_digitalcontenturl_orderline_relation.py
+++ b/saleor/product/migrations/0170_rewrite_digitalcontenturl_orderline_relation.py
@@ -16,10 +16,10 @@ class Migration(migrations.Migration):
model_name="digitalcontenturl",
name="order_line_token",
field=models.OneToOneField(
- blank=True,
- null=True,
- on_delete=django.db.models.deletion.CASCADE,
- to="order.orderline",
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ to="order.orderline",
),
),
migrations.RemoveField(