Skip to content

Commit 9965e98

Browse files
committed
review
1 parent f23c70a commit 9965e98

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

db/migrations/20260701113522_add_box_monetary_value_weight.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public function up(): void
88
{
99
$this->table('stock')
1010
->addColumn('weight_display_unit_id', 'integer', [
11-
'null' => true,
11+
'null' => false,
1212
'default' => 1, // kilogram
1313
'signed' => false,
1414
'after' => 'size_id',
@@ -40,7 +40,7 @@ public function up(): void
4040
->save()
4141
;
4242
$this->table('camps')
43-
->addColumn('currency', 'string', [
43+
->addColumn('monetary_currency_code', 'string', [
4444
'null' => false,
4545
'default' => 'EUR',
4646
'limit' => 15,
@@ -62,7 +62,7 @@ public function down(): void
6262
->save()
6363
;
6464
$this->table('camps')
65-
->removeColumn('currency')
65+
->removeColumn('monetary_currency_code')
6666
->save()
6767
;
6868
}

0 commit comments

Comments
 (0)