diff --git a/database/migrations/2022_08_30_081930_add_balance_to_users_table.php b/database/migrations/2022_08_30_081930_add_balance_to_users_table.php index f68e23d..9ffa7b5 100644 --- a/database/migrations/2022_08_30_081930_add_balance_to_users_table.php +++ b/database/migrations/2022_08_30_081930_add_balance_to_users_table.php @@ -14,7 +14,7 @@ public function up(): void { Schema::table('users', function (Blueprint $table) { // - $table->decimal('balances', 10)->default(0)->after('password'); + $table->decimal('balance', 10)->default(0)->after('password'); // drop column if exists if (Schema::hasColumn('users', 'drops')) { @@ -32,7 +32,7 @@ public function down(): void { Schema::table('users', function (Blueprint $table) { // - $table->dropColumn('balances'); + $table->dropColumn('balance'); }); } }; diff --git a/database/migrations/2022_09_13_191255_add_banned_at_to_users.php b/database/migrations/2022_09_13_191255_add_banned_at_to_users.php index 7d7cbe1..6d14474 100644 --- a/database/migrations/2022_09_13_191255_add_banned_at_to_users.php +++ b/database/migrations/2022_09_13_191255_add_banned_at_to_users.php @@ -14,7 +14,7 @@ public function up(): void { Schema::table('users', function (Blueprint $table) { // - $table->dateTime('banned_at')->nullable()->comment('封禁时间')->after('balances'); + $table->dateTime('banned_at')->nullable()->comment('封禁时间')->after('balance'); // reason $table->string('banned_reason')->nullable()->after('banned_at'); }); diff --git a/database/migrations/2023_01_07_200343_rename_balances_column_to_users.php b/database/migrations/2023_01_07_200343_rename_balances_column_to_users.php deleted file mode 100644 index 66e6afa..0000000 --- a/database/migrations/2023_01_07_200343_rename_balances_column_to_users.php +++ /dev/null @@ -1,37 +0,0 @@ -renameColumn('balances', 'balance'); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down(): void - { - Schema::table('users', function (Blueprint $table) { - if (Schema::hasColumn('users', 'balance')) { - $table->renameColumn('balance', 'balances'); - } - }); - } -};