Files
Gnuboard7/database/migrations/2026_04_01_000019_create_plugins_table.php
T
HeuJung bd215bc586 feat(identity): NHN KCP 휴대폰 본인확인 플러그인 추가
메일 인증 대신 휴대폰 본인확인을 쓸 수 있게 하는 플러그인을 추가한다.
가입·비밀번호 재설정·성인인증 등 코어 IDV 가 강제하는 모든 지점에서 동작하며,
테스트 모드로 계약 없이 전 흐름을 확인할 수 있다.

구현·검수 과정에서 드러난 저장소 전역 결함을 함께 처리했다.

- 외래키 컬럼의 한국어 comment 가 방출되지 않던 문제 (소스 38건 교정 +
 기설치본 백필 업그레이드 스텝 7종). ->comment 를 ->constrained 뒤에
 체인하면 예외 없이 통과하면서 comment 가 조용히 사라진다
- 로케일 전환 후 확장 액션 핸들러가 소실되던 문제 (플러그인 3종에
 재등록 진입점 노출)
- 본인인증 상태 폴링 응답이 누적 시도 횟수를 함께 내보내던 문제
- 인증 안내 문구와 실제 진행 방식의 폭 경계 불일치 (768~1023px).
 엔진과 같은 값을 같은 방법으로 읽도록 교정
- transition_overlay_target 이 replace 없이 무효이던 관리자 목록 40곳.
 로딩 표시가 나오지 않아도 경고가 남지 않아 화면을 봐야만 알 수 있었다

두 인증 플러그인의 코어 최소 요구 버전을 7.0.6 으로 올린다. 운영 모드
자격증명 필수 검사가 7.0.6 의 설정 저장 검증 표면에 의존하며, 그보다 낮은
코어에서는 그 검사가 조용히 통과해 빈 자격증명으로 저장할 수 있었다.

재발 차단으로 정적 검사 룰 4종을 신설하고, 검사 도구가 미커밋 신규 확장을
"검사 파일 0" 으로 통과시키던 사각을 함께 막았다.
2026-07-31 00:32:46 +09:00

50 lines
2.4 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('plugins', function (Blueprint $table) {
$table->id();
$table->string('identifier')->unique()->comment('플러그인 고유 식별자 (vendor-plugin 형식)');
$table->string('vendor')->index()->comment('벤더/개발자명');
$table->text('name')->comment('플러그인 이름 (다국어 JSON)');
$table->mediumText('description')->nullable()->comment('플러그인 설명 (다국어 JSON)');
$table->string('github_url', 512)->nullable()->comment('GitHub 저장소 URL');
$table->mediumText('metadata')->nullable()->comment('추가 메타데이터');
$table->unsignedBigInteger('updated_by')->nullable()->comment('수정자 ID');
$table->string('version')->comment('플러그인 버전');
$table->string('latest_version', 50)->nullable()->comment('마켓플레이스 최신 버전');
$table->boolean('update_available')->default(false)->comment('업데이트 가능 여부');
$table->string('update_source', 20)->nullable()->comment('업데이트 출처 (github, pending, bundled)');
$table->string('github_changelog_url', 512)->nullable()->comment('GitHub 변경 내역 URL');
$table->enum('status', ['active', 'inactive', 'installing', 'uninstalling', 'updating'])->default('inactive')->index()->comment('상태 (active: 활성화, inactive: 비활성화, installing: 설치 중, uninstalling: 제거 중, updating: 업데이트 중)');
$table->mediumText('hooks')->nullable()->comment('훅 설정 정보');
$table->foreignId('created_by')->nullable()->comment('플러그인 생성자 ID')->constrained('users')->nullOnDelete();
$table->timestamps();
});
if (DB::getDriverName() == 'mysql') {
Schema::table('plugins', function (Blueprint $table) {
$table->comment('시스템 플러그인 관리');
});
}
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('plugins');
}
};