fix: clients 테이블 Collation 불일치 수정

- BUG-BANK-20260115-001: 은행거래 테이블 데이터 미표시 오류 해결
- clients 테이블 Collation을 utf8mb4_unicode_ci로 변경
- UNION 쿼리 (deposits, withdrawals, clients) 호환성 확보
- 통계 카드와 테이블 데이터 동기화 완료

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-15 20:06:25 +09:00
parent a1aa8726af
commit fa6e96dcbc

View File

@@ -0,0 +1,24 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
return new class extends Migration
{
/**
* clients 테이블 Collation을 utf8mb4_unicode_ci로 변경
* (다른 테이블과 통일하여 UNION 쿼리 호환성 확보)
*/
public function up(): void
{
DB::statement('ALTER TABLE clients CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci');
}
/**
* 롤백 시 원래 Collation으로 복원
*/
public function down(): void
{
DB::statement('ALTER TABLE clients CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci');
}
};