Skip to content

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

Fix mulitchannel checkout migration (#6491)

Filip Owczarek955302ea759e
diff --git a/saleor/checkout/migrations/0030_checkout_channel_listing.py b/saleor/checkout/migrations/0030_checkout_channel_listing.py
index c13e0e1cca..231005d192 100644
--- a/saleor/checkout/migrations/0030_checkout_channel_listing.py
+++ b/saleor/checkout/migrations/0030_checkout_channel_listing.py
@@ -39,6 +39,7 @@ class Migration(migrations.Migration):
model_name="checkout",
name="channel",
field=models.ForeignKey(
+ null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="checkouts",
to="channel.channel",
@@ -50,4 +51,13 @@ class Migration(migrations.Migration):
field=models.CharField(max_length=3),
),
migrations.RunPython(add_channel_slug),
+ migrations.AlterField(
+ model_name="checkout",
+ name="channel",
+ field=models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name="checkouts",
+ to="channel.channel",
+ ),
+ ),
]