chore: 마이그레이션 파일 안정화 (anonymousClass 추가)
This commit is contained in:
@@ -98,4 +98,4 @@ public function down(): void
|
||||
Schema::dropIfExists('admin_pm_tasks');
|
||||
Schema::dropIfExists('admin_pm_projects');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -35,4 +35,4 @@ public function down(): void
|
||||
$table->dropColumn('is_urgent');
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@ public function up(): void
|
||||
{
|
||||
// MySQL에서 enum을 varchar로 변경
|
||||
// 기존 데이터는 그대로 유지됨
|
||||
DB::statement("ALTER TABLE archived_records MODIFY COLUMN record_type VARCHAR(50) NOT NULL");
|
||||
DB::statement('ALTER TABLE archived_records MODIFY COLUMN record_type VARCHAR(50) NOT NULL');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -27,4 +27,4 @@ public function down(): void
|
||||
// varchar를 다시 enum으로 변경 (기존 값만)
|
||||
DB::statement("ALTER TABLE archived_records MODIFY COLUMN record_type ENUM('tenant', 'user') NOT NULL");
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -40,4 +40,4 @@ public function down(): void
|
||||
$table->dropColumn('tenant_id');
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -57,4 +57,4 @@ public function down(): void
|
||||
Schema::dropIfExists('admin_pm_daily_log_entries');
|
||||
Schema::dropIfExists('admin_pm_daily_logs');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -47,4 +47,4 @@ public function down(): void
|
||||
$table->dropColumn(['global_menu_id', 'is_customized']);
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -25,4 +25,4 @@ public function down(): void
|
||||
$table->unsignedBigInteger('category_id')->default(null)->change();
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -48,4 +48,4 @@ public function down(): void
|
||||
->onUpdate('cascade');
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* clients 테이블 is_active 컬럼을 CHAR(1) 'Y'/'N'에서 TINYINT(1) 0/1로 변환
|
||||
@@ -39,4 +38,4 @@ public function down(): void
|
||||
DB::statement("UPDATE clients SET is_active = 'Y' WHERE is_active = '1' OR is_active = 1");
|
||||
DB::statement("UPDATE clients SET is_active = 'N' WHERE is_active = '0' OR is_active = 0");
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user