Skip to content

Commit

Permalink
관리자 디비업그레이드시 체크 과정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Dec 23, 2019
1 parent 6016db4 commit ffc4305
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions adm/dbupgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,22 @@
$is_check = true;
}

// 스크랩 읽은 수 추가
if(!isset($member['mb_scrap_cnt'])) {
sql_query(" ALTER TABLE `{$g5['member_table']}`
ADD `mb_scrap_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_cnt`", true);

$is_check = true;
}

// 짧은 URL 주소를 사용 여부 필드 추가
if (!isset($config['cf_bbs_rewrite'])) {
sql_query(" ALTER TABLE `{$g5['config_table']}`
ADD `cf_bbs_rewrite` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_link_target` ", true);

$is_check = true;
}

// 파일테이블에 추가 칼럼

$sql = " SHOW COLUMNS FROM `{$g5['board_file_table']}` LIKE 'bf_fileurl' ";
Expand Down

0 comments on commit ffc4305

Please sign in to comment.