과거 누적 DDL과 데이터 보정을 시점별 SQL로 분리하고 관리자·CLI 실행기를 제공한다. 실행 순서, 잠금, 체크섬, 성공·실패 이력 및 개별 실행의 선행 조건을 검증한다. 기존 스키마의 부분 적용 복구와 설치 SQL 정합성 검사를 추가하고 실행·복구 절차를 문서화한다.
18 lines
1.1 KiB
SQL
18 lines
1.1 KiB
SQL
-- @description 장바구니 상품 배송비 정보 필드 추가 (3889e0235)
|
|
-- @if-table-exists {{g5_shop_cart_table}}
|
|
-- @if-column-missing {{g5_shop_cart_table}} it_sc_type
|
|
ALTER TABLE `{{g5_shop_cart_table}}`
|
|
ADD `it_sc_type` tinyint(4) NOT NULL DEFAULT '0' AFTER `it_name`;
|
|
-- @if-table-exists {{g5_shop_cart_table}}
|
|
-- @if-column-missing {{g5_shop_cart_table}} it_sc_method
|
|
ALTER TABLE `{{g5_shop_cart_table}}` ADD `it_sc_method` tinyint(4) NOT NULL DEFAULT '0' AFTER `it_sc_type`;
|
|
-- @if-table-exists {{g5_shop_cart_table}}
|
|
-- @if-column-missing {{g5_shop_cart_table}} it_sc_price
|
|
ALTER TABLE `{{g5_shop_cart_table}}` ADD `it_sc_price` int(11) NOT NULL DEFAULT '0' AFTER `it_sc_method`;
|
|
-- @if-table-exists {{g5_shop_cart_table}}
|
|
-- @if-column-missing {{g5_shop_cart_table}} it_sc_minimum
|
|
ALTER TABLE `{{g5_shop_cart_table}}` ADD `it_sc_minimum` int(11) NOT NULL DEFAULT '0' AFTER `it_sc_price`;
|
|
-- @if-table-exists {{g5_shop_cart_table}}
|
|
-- @if-column-missing {{g5_shop_cart_table}} it_sc_qty
|
|
ALTER TABLE `{{g5_shop_cart_table}}` ADD `it_sc_qty` int(11) NOT NULL DEFAULT '0' AFTER `it_sc_minimum`;
|