diff --git a/extend/shop.extend2.php b/extend/shop.extend2.php index ddb151b4e..b5667ac93 100644 --- a/extend/shop.extend2.php +++ b/extend/shop.extend2.php @@ -724,4 +724,11 @@ if(!sql_query(" select iq_secret from {$g5['g5_shop_item_qa_table']} limit 1 ", sql_query(" ALTER TABLE `{$g5['g5_shop_item_qa_table']}` ADD `iq_secret` tinyint(4) NOT NULL DEFAULT '0' AFTER `mb_id` ", true); } + +// 상품문의 이메일 휴대폰 필드 추가 +if(!sql_query(" select iq_hp from {$g5['g5_shop_item_qa_table']} limit 1 ", false)) { + sql_query(" ALTER TABLE `{$g5['g5_shop_item_qa_table']}` + ADD `iq_email` varchar(255) NOT NULL DEFAULT '' AFTER `iq_name`, + ADD `iq_hp` varchar(255) NOT NULL DEFAULT '' AFTER `iq_email` ", true); +} ?> diff --git a/install/gnuboard5shop.sql b/install/gnuboard5shop.sql index c2095d059..c48953f96 100644 --- a/install/gnuboard5shop.sql +++ b/install/gnuboard5shop.sql @@ -543,6 +543,8 @@ CREATE TABLE IF NOT EXISTS `g5_shop_item_qa` ( `mb_id` varchar(255) NOT NULL DEFAULT '', `iq_secret` tinyint(4) NOT NULL DEFAULT '0', `iq_name` varchar(255) NOT NULL DEFAULT '', + `iq_email` varchar(255) NOT NULL DEFAULT '', + `iq_hp` varchar(255) NOT NULL DEFAULT '', `iq_password` varchar(255) NOT NULL DEFAULT '', `iq_subject` varchar(255) NOT NULL DEFAULT '', `iq_question` text NOT NULL, diff --git a/mobile/skin/shop/basic/itemqaform.skin.php b/mobile/skin/shop/basic/itemqaform.skin.php index 5343b2ea6..77d91287e 100644 --- a/mobile/skin/shop/basic/itemqaform.skin.php +++ b/mobile/skin/shop/basic/itemqaform.skin.php @@ -27,6 +27,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 +