Skip to content

[2.x] Existing databases do not receive order_lines.refunded_quantity for line-item refunds #2709

Description

@tazzytazzy

Which release line(s) does this affect?

2.x

Lunar version

2.x - 32ed8e6

PHP version

8.5.9

Laravel version

13.29.0

Database driver & version

MariaDB 11.8.8

Expected behaviour

After upgrading an existing Lunar 2.x database and running the documented migration process, its schema should match a fresh installation.

Specifically:

  • order_lines.refunded_quantity should be added as an unsigned integer with a default of 0.
  • Existing order-line records should be preserved and receive the default value.
  • A line-item refund should create the refund transaction and corresponding refund_lines records, increment refunded_quantity, and dispatch OrderRefunded.

Actual behaviour

After upgrading an existing Lunar 2.x database and running the documented migration process, its schema should match a fresh installation.

Specifically:

  • order_lines.refunded_quantity should be added as an unsigned integer with a default of 0.
  • Existing order-line records should be preserved and receive the default value.
  • A line-item refund should create the refund transaction and corresponding refund_lines records, increment refunded_quantity, and dispatch OrderRefunded.

Minimal reproduction steps

After upgrading an existing Lunar 2.x database and running the documented migration process, its schema should match a fresh installation.

Specifically:

  • order_lines.refunded_quantity should be added as an unsigned integer with a default of 0.
  • Existing order-line records should be preserved and receive the default value.
  • A line-item refund should create the refund transaction and corresponding refund_lines records, increment refunded_quantity, and dispatch OrderRefunded.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.xneeds-infoWaiting on more information from the reportertype:bugReproducible defect

    Type

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions