refactor: 일반 실행 경로의 DB 변경을 버전형 마이그레이션으로 이전

과거 누적 DDL과 데이터 보정을 시점별 SQL로 분리하고 관리자·CLI 실행기를 제공한다. 실행 순서, 잠금, 체크섬, 성공·실패 이력 및 개별 실행의 선행 조건을 검증한다.

기존 스키마의 부분 적용 복구와 설치 SQL 정합성 검사를 추가하고 실행·복구 절차를 문서화한다.
This commit is contained in:
whitedot committed 2026-09-09 07:58:05 +00:00
1 parent d111100856
commit 5bdbf360b0
76 files changed
+1826 -2182

No files matched your search

+1 -5
View File
@@ -6,10 +6,6 @@ if ($is_admin != 'super')
alert('최고관리자만 접근 가능합니다.');
// 테마 필드 추가
if(!isset($config['cf_theme'])) {
sql_query(" ALTER TABLE `{$g5['config_table']}`
ADD `cf_theme` varchar(255) NOT NULL DEFAULT '' AFTER `cf_title` ", true);
}
$theme = get_theme_dir();
if($config['cf_theme'] && in_array($config['cf_theme'], $theme))
@@ -75,4 +71,4 @@ include_once('./admin.head.php');
<?php } ?>
<?php
include_once ('./admin.tail.php');
include_once ('./admin.tail.php');