From cfae9acb426d653373a08bd0047945e83d30ef35 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sat, 14 Jan 2023 18:17:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E8=BF=81=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...1_14_180605_change_type_to_hosts_table.php | 4 +-- ...22_change_decimal_total_to_users_table.php | 32 ------------------- 2 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 database/migrations/2023_01_14_181022_change_decimal_total_to_users_table.php diff --git a/database/migrations/2023_01_14_180605_change_type_to_hosts_table.php b/database/migrations/2023_01_14_180605_change_type_to_hosts_table.php index 10f2f71..59d1e9d 100644 --- a/database/migrations/2023_01_14_180605_change_type_to_hosts_table.php +++ b/database/migrations/2023_01_14_180605_change_type_to_hosts_table.php @@ -15,8 +15,8 @@ public function up(): void { Schema::table('hosts', function (Blueprint $table) { // 将 price 和 managed_price 改成 decimal - $table->decimal('price')->change(); - $table->decimal('managed_price')->change(); + $table->decimal('price', 10)->change(); + $table->decimal('managed_price', 10)->change(); }); } 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 deleted file mode 100644 index 7aab67f..0000000 --- a/database/migrations/2023_01_14_181022_change_decimal_total_to_users_table.php +++ /dev/null @@ -1,32 +0,0 @@ -decimal('balance')->default(0)->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down(): void - { - Schema::table('users', function (Blueprint $table) { - $table->decimal('balance', 10)->default(0)->change(); - }); - } -};