From ef364e1430c6ee27072662d3481c114b5354ef21 Mon Sep 17 00:00:00 2001 From: chym1217 Date: Mon, 8 Sep 2025 16:37:03 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9E=AC=EC=9E=85=EA=B3=A0=20=EC=95=8C?= =?UTF-8?q?=EB=A6=BC=20DB=20=EC=97=85=EA=B7=B8=EB=A0=88=EC=9D=B4=EB=93=9C?= =?UTF-8?q?=20=E2=80=93=20=EC=98=81=EC=B9=B4=ED=8A=B8=20=EB=AF=B8=EC=84=A4?= =?UTF-8?q?=EC=B9=98=20=EC=8B=9C=20=EB=B0=9C=EC=83=9D=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/dbupgrade.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/adm/dbupgrade.php b/adm/dbupgrade.php index 7b99b4b1a..a26c55ec1 100644 --- a/adm/dbupgrade.php +++ b/adm/dbupgrade.php @@ -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; + } + } }