File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ private const TABLES = [
4444public function up(): void
4545{
4646 foreach (self::TABLES as $tableName => $columns) {
47+ Schema::table($tableName, function (Blueprint $table) use ($columns) {
48+ foreach ($columns as $column) {
49+ $table->bigInteger($column)->default(0)->change();
50+ }
51+ });
52+
4753 $lackingDecimalPlaces = 4 - self::DECIMALS;
4854 if ($lackingDecimalPlaces > 0) {
4955 $multiplier = 10 ** $lackingDecimalPlaces;
@@ -56,12 +62,6 @@ public function up(): void
5662 ->toArray()
5763 );
5864 }
59-
60- Schema::table($tableName, function (Blueprint $table) use ($columns) {
61- foreach ($columns as $column) {
62- $table->bigInteger($column)->default(0)->change();
63- }
64- });
6565 }
6666}
6767```
You can’t perform that action at this time.
0 commit comments