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

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

기존 스키마의 부분 적용 복구와 설치 SQL 정합성 검사를 추가하고 실행·복구 절차를 문서화한다.
This commit is contained in:
whitedot
2026-09-09 07:58:05 +00:00
parent d111100856
commit 5bdbf360b0
76 changed files with 1826 additions and 2182 deletions
@@ -0,0 +1,7 @@
-- @description 장바구니 상품·상태 조회 인덱스 추가 (344b1983a)
-- @if-table-exists {{g5_shop_cart_table}}
-- @if-index-missing {{g5_shop_cart_table}} it_id
ALTER TABLE `{{g5_shop_cart_table}}` ADD INDEX `it_id` (`it_id`);
-- @if-table-exists {{g5_shop_cart_table}}
-- @if-index-missing {{g5_shop_cart_table}} ct_status
ALTER TABLE `{{g5_shop_cart_table}}` ADD INDEX `ct_status` (`ct_status`);