fix: 재입고 알림 DB 업그레이드 – 영카트 미설치 시 발생 오류 해결

This commit is contained in:
chym1217
2025-09-08 16:37:03 +09:00
parent f6a6a5622d
commit ef364e1430

View File

@ -438,14 +438,18 @@ if (!isset($member['mb_board_post'])) {
}
// 재입고 알림 - 채널 구분 (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)) {
sql_query(
" ALTER TABLE `{$g5['g5_shop_item_stocksms_table']}`
ADD `ss_channel` tinyint(4) NOT NULL DEFAULT '1' AFTER `ss_ip` ",
true
);
if (defined('G5_USE_SHOP') && G5_USE_SHOP) {
if(sql_query(" DESC {$g5['g5_shop_item_stocksms_table']} ", false)) {
if(!sql_query(" select ss_channel from {$g5['g5_shop_item_stocksms_table']} limit 1", false)) {
sql_query(
" 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;
}
}
}