From c6d943291a67cee09036f29d6384b35fb54a5019 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sat, 14 Jan 2023 18:14:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2023_01_14_181022_change_decimal_total_to_users_table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2023_01_14_181022_change_decimal_total_to_users_table.php b/database/migrations/2023_01_14_181022_change_decimal_total_to_users_table.php index 577ad75..7aab67f 100644 --- a/database/migrations/2023_01_14_181022_change_decimal_total_to_users_table.php +++ b/database/migrations/2023_01_14_181022_change_decimal_total_to_users_table.php @@ -14,7 +14,7 @@ public function up(): void { Schema::table('users', function (Blueprint $table) { - $table->decimal('balance')->change(); + $table->decimal('balance')->default(0)->change(); }); } @@ -26,7 +26,7 @@ public function up(): void public function down(): void { Schema::table('users', function (Blueprint $table) { - $table->decimal('balance', 10)->change(); + $table->decimal('balance', 10)->default(0)->change(); }); } };