fix:gcs_uri 마이그레이션 컬럼 존재 체크 추가

This commit is contained in:
김보곤
2026-02-02 20:16:12 +09:00
parent 502e34d88e
commit 7b06644f23

View File

@@ -12,10 +12,12 @@
*/ */
public function up(): void public function up(): void
{ {
if (!Schema::hasColumn('sales_consultations', 'gcs_uri')) {
Schema::table('sales_consultations', function (Blueprint $table) { Schema::table('sales_consultations', function (Blueprint $table) {
$table->string('gcs_uri', 500)->nullable()->after('duration')->comment('GCS 저장 URI'); $table->string('gcs_uri', 500)->nullable()->after('duration')->comment('GCS 저장 URI');
}); });
} }
}
/** /**
* Reverse the migrations. * Reverse the migrations.