fix: [address] 주소 필드 255자 → 500자 확장

- DB 마이그레이션: clients, tenants, site_briefings, sites 테이블 address 컬럼 varchar(500)
- FormRequest 8개 파일 max:255 → max:500 변경
This commit is contained in:
김보곤
2026-03-04 11:29:08 +09:00
parent c55380f1d2
commit 814b965748
9 changed files with 42 additions and 8 deletions

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
$tables = ['clients', 'tenants', 'site_briefings', 'sites'];
foreach ($tables as $table) {
if (Schema::hasColumn($table, 'address')) {
Schema::table($table, function (Blueprint $t) {
$t->string('address', 500)->nullable()->change();
});
}
}
}
public function down(): void
{
$tables = ['clients', 'tenants', 'site_briefings', 'sites'];
foreach ($tables as $table) {
if (Schema::hasColumn($table, 'address')) {
Schema::table($table, function (Blueprint $t) {
$t->string('address', 255)->nullable()->change();
});
}
}
}
};