Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove settings seconds in migrations (#9762)
Marcin Gębalab56bf8680113
diff --git a/saleor/checkout/migrations/0044_fulfill_checkout_line_new_fields.py b/saleor/checkout/migrations/0044_fulfill_checkout_line_new_fields.pyindex 895f64bede..9e5de462f5 100644--- a/saleor/checkout/migrations/0044_fulfill_checkout_line_new_fields.py+++ b/saleor/checkout/migrations/0044_fulfill_checkout_line_new_fields.py@@ -19,9 +19,7 @@ def set_checkout_line_token_and_created_at(apps, _schema_editor):)for checkout_line in checkout_lines:checkout = checkout_in_bulk.get(checkout_line.checkout_id)- checkout_line.created_at = checkout.created_at.replace(- second=checkout_line.pk- )+ checkout_line.created_at = checkout.created_atcheckout_line.token = uuid.uuid4()CheckoutLine.objects.bulk_update(checkout_lines, ["token", "created_at"])diff --git a/saleor/order/migrations/0139_fulfil_orderline_token_old_id_created_at.py b/saleor/order/migrations/0139_fulfil_orderline_token_old_id_created_at.pyindex 2f5f9ad334..a11124a4f0 100644--- a/saleor/order/migrations/0139_fulfil_orderline_token_old_id_created_at.py+++ b/saleor/order/migrations/0139_fulfil_orderline_token_old_id_created_at.py@@ -19,7 +19,7 @@ def set_order_line_token_and_created_at(apps, _schema_editor):)for order_line in order_lines:order = order_in_bulk.get(order_line.order_id)- order_line.created_at = order.created_at.replace(second=order_line.pk)+ order_line.created_at = order.created_atorder_line.token = uuid.uuid4()OrderLine.objects.bulk_update(order_lines, ["token", "created_at"])