fix: 재입고 알림 DB 업그레이드 – 영카트 미설치 시 발생 오류 해결
This commit is contained in:
@ -438,14 +438,18 @@ if (!isset($member['mb_board_post'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 재입고 알림 - 채널 구분 (1=SMS, 2=알림톡)
|
// 재입고 알림 - 채널 구분 (1=SMS, 2=알림톡)
|
||||||
if(sql_query(" DESC {$g5['g5_shop_item_stocksms_table']} ", false) && !sql_query(" select ss_channel from {$g5['g5_shop_item_stocksms_table']} limit 1", false)) {
|
if (defined('G5_USE_SHOP') && G5_USE_SHOP) {
|
||||||
sql_query(
|
if(sql_query(" DESC {$g5['g5_shop_item_stocksms_table']} ", false)) {
|
||||||
" ALTER TABLE `{$g5['g5_shop_item_stocksms_table']}`
|
if(!sql_query(" select ss_channel from {$g5['g5_shop_item_stocksms_table']} limit 1", false)) {
|
||||||
ADD `ss_channel` tinyint(4) NOT NULL DEFAULT '1' AFTER `ss_ip` ",
|
sql_query(
|
||||||
true
|
" ALTER TABLE `{$g5['g5_shop_item_stocksms_table']}`
|
||||||
);
|
ADD `ss_channel` tinyint(4) NOT NULL DEFAULT '1' AFTER `ss_ip` ",
|
||||||
|
true
|
||||||
|
);
|
||||||
|
|
||||||
$is_check = true;
|
$is_check = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user