Skip to content

Commit 1a84480

Browse files
committed
Reduce size of columns
1 parent bb3f8ea commit 1a84480

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

database/migrations/2025_09_28_131354_create_metrics_table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public function up(): void
1616
$table->string('name')->index();
1717
$table->string('category')->nullable()->index();
1818
$table->nullableMorphs('measurable');
19-
$table->unsignedInteger('year');
20-
$table->unsignedInteger('month');
21-
$table->unsignedInteger('day');
19+
$table->unsignedSmallInteger('year');
20+
$table->unsignedTinyInteger('month');
21+
$table->unsignedTinyInteger('day');
2222
$table->unsignedInteger('value');
2323
$table->timestamps();
2424

0 commit comments

Comments
 (0)