Files
Gnuboard5/migrations/20191202_001_gnuboard_54_schema.sql
T
whitedot 5bdbf360b0 refactor: 일반 실행 경로의 DB 변경을 버전형 마이그레이션으로 이전
과거 누적 DDL과 데이터 보정을 시점별 SQL로 분리하고 관리자·CLI 실행기를 제공한다. 실행 순서, 잠금, 체크섬, 성공·실패 이력 및 개별 실행의 선행 조건을 검증한다.

기존 스키마의 부분 적용 복구와 설치 SQL 정합성 검사를 추가하고 실행·복구 절차를 문서화한다.
2026-09-09 07:58:05 +00:00

12 lines
720 B
SQL

-- @description 그누보드 5.4 SEO·메모·첨부 스키마 추가 (22aad37bf)
-- @if-column-missing {{content_table}} co_seo_title
ALTER TABLE `{{content_table}}` ADD `co_seo_title` varchar(200) NOT NULL DEFAULT '' AFTER `co_content`, ADD INDEX `co_seo_title` (`co_seo_title`);
-- @if-column-missing {{memo_table}} me_send_id
ALTER TABLE `{{memo_table}}`
ADD `me_send_id` int(11) NOT NULL DEFAULT '0';
-- @if-column-missing {{member_table}} mb_memo_cnt
ALTER TABLE `{{member_table}}` ADD `mb_memo_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_call`;
-- @if-column-missing {{board_file_table}} bf_fileurl
ALTER TABLE `{{board_file_table}}`
ADD `bf_fileurl` varchar(255) NOT NULL DEFAULT '' AFTER `bf_content`;