diff --git a/database/migrations/2026_03_28_050000_lowercase_existing_emails.php b/database/migrations/2026_03_28_050000_lowercase_existing_emails.php deleted file mode 100644 index 07eee3d..0000000 --- a/database/migrations/2026_03_28_050000_lowercase_existing_emails.php +++ /dev/null @@ -1,38 +0,0 @@ -whereNotNull('email') - ->whereRaw('email != LOWER(email)') - ->count(); - - if ($count > 0) { - Log::info("Converting {$count} email(s) to lowercase"); - DB::table('v2_user') - ->whereNotNull('email') - ->whereRaw('email != LOWER(email)') - ->update(['email' => DB::raw('LOWER(email)')]); - - Log::info("Email lowercase conversion completed"); - } - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - // 无法恢复原始大小写 - } -};