과거 누적 DDL과 데이터 보정을 시점별 SQL로 분리하고 관리자·CLI 실행기를 제공한다. 실행 순서, 잠금, 체크섬, 성공·실패 이력 및 개별 실행의 선행 조건을 검증한다. 기존 스키마의 부분 적용 복구와 설치 SQL 정합성 검사를 추가하고 실행·복구 절차를 문서화한다.
9 lines
525 B
SQL
9 lines
525 B
SQL
-- @description 모바일 이니시스 통지 원문·메일 상태 필드 추가 (db7e07da2)
|
|
-- @if-table-exists {{g5_shop_inicis_log_table}}
|
|
-- @if-column-missing {{g5_shop_inicis_log_table}} post_data
|
|
ALTER TABLE `{{g5_shop_inicis_log_table}}`
|
|
ADD `post_data` text NOT NULL AFTER `P_RMESG1`;
|
|
-- @if-table-exists {{g5_shop_inicis_log_table}}
|
|
-- @if-column-missing {{g5_shop_inicis_log_table}} is_mail_send
|
|
ALTER TABLE `{{g5_shop_inicis_log_table}}` ADD `is_mail_send` tinyint(4) NOT NULL DEFAULT '1' AFTER `post_data`;
|