Skip to content

DB migration for box monetary value and stock#831

Merged
pylipp merged 1 commit into
masterfrom
db-migration-box-monetary-value-weight
Jul 6, 2026
Merged

DB migration for box monetary value and stock#831
pylipp merged 1 commit into
masterfrom
db-migration-box-monetary-value-weight

Conversation

@pylipp

@pylipp pylipp commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds database support for storing per-stock weight and monetary value, plus a camp-level currency field to contextualize monetary values.

Changes:

  • Adds weight_display_unit_id, weight, and monetary_value columns to stock and links the unit to units(id) via a foreign key.
  • Adds a currency column to camps (defaulting to EUR).

Comment thread db/migrations/20260701113522_add_box_monetary_value_weight.php
Comment thread db/migrations/20260701113522_add_box_monetary_value_weight.php

@HaGuesto HaGuesto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code and functional review done

@pylipp please incorporate the two suggested changes from copilot. I do not need to review again.

Comment thread db/migrations/20260701113522_add_box_monetary_value_weight.php
Comment thread db/migrations/20260701113522_add_box_monetary_value_weight.php
@pylipp pylipp merged commit f23c70a into master Jul 6, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants