fix:gcs_uri 마이그레이션 컬럼 존재 체크 추가
This commit is contained in:
@@ -12,9 +12,11 @@
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('sales_consultations', function (Blueprint $table) {
|
||||
$table->string('gcs_uri', 500)->nullable()->after('duration')->comment('GCS 저장 URI');
|
||||
});
|
||||
if (!Schema::hasColumn('sales_consultations', 'gcs_uri')) {
|
||||
Schema::table('sales_consultations', function (Blueprint $table) {
|
||||
$table->string('gcs_uri', 500)->nullable()->after('duration')->comment('GCS 저장 URI');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user