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(); - }); - } -};