From c549a4dcaeadbff79be40f8881cebd3c1488481f Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Wed, 18 Jan 2023 00:06:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20decimal=20total?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...cimal_total_to_users_and_modules_table.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 database/migrations/2023_01_17_235003_change_decimal_total_to_users_and_modules_table.php diff --git a/database/migrations/2023_01_17_235003_change_decimal_total_to_users_and_modules_table.php b/database/migrations/2023_01_17_235003_change_decimal_total_to_users_and_modules_table.php new file mode 100644 index 0000000..01c2661 --- /dev/null +++ b/database/migrations/2023_01_17_235003_change_decimal_total_to_users_and_modules_table.php @@ -0,0 +1,39 @@ +decimal('balance', 20, 4)->change(); + }); + + Schema::table('modules', function (Blueprint $table) { + $table->decimal('balance', 20, 4)->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + $table->decimal('balance', 10)->change(); + }); + + Schema::table('modules', function (Blueprint $table) { + $table->decimal('balance', 10)->change(); + }); + } +};