From 9f9b56f3e248fb71c8351ffaf0168fa13568ca80 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Mon, 18 Nov 2013 17:06:40 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=81=ED=92=88=ED=85=8C=EC=9D=B4=EB=B8=94?= =?UTF-8?q?=EC=97=90=20=EC=83=88=EB=A1=9C=EC=9A=B4=20=ED=95=84=EB=93=9C=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/shop.extend2.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/extend/shop.extend2.php b/extend/shop.extend2.php index f78e6e72a..25faab908 100644 --- a/extend/shop.extend2.php +++ b/extend/shop.extend2.php @@ -686,10 +686,22 @@ if(!sql_query(" select od_cash_info from {$g5['g5_shop_order_table']} limit 1", DROP `od_cash_id_info` ", true); } -// 상품테이블 재고통보수량 필드 추가 -if(!sql_query(" select it_noti_qty from {$g5['g5_shop_item_table']} limit 1 ", false)) { +// 상품테이블 판매량합계 필드 추가 +if(!sql_query(" select it_sum_qty from {$g5['g5_shop_item_table']} limit 1 ", false)) { sql_query(" ALTER TABLE `{$g5['g5_shop_item_table']}` - ADD `it_noti_qty` int(11) NOT NULL DEFAULT '0' AFTER `it_stock_qty` ", true); + ADD `it_sum_qty` int(11) NOT NULL DEFAULT '0' AFTER `it_info_value` ", true); +} + +// 상품테이블 사용후기건수합계 필드 추가 +if(!sql_query(" select it_use_cnt from {$g5['g5_shop_item_table']} limit 1 ", false)) { + sql_query(" ALTER TABLE `{$g5['g5_shop_item_table']}` + ADD `it_use_cnt` int(11) NOT NULL DEFAULT '0' AFTER `it_sum_qty` ", true); +} + +// 상품테이블 사용후기평점 필드 추가 +if(!sql_query(" select it_use_avg from {$g5['g5_shop_item_table']} limit 1 ", false)) { + sql_query(" ALTER TABLE `{$g5['g5_shop_item_table']}` + ADD `it_use_avg` DECIMAL(2,1) NOT NULL AFTER `it_use_cnt` ", true); } // 상품테이블 업데이트 일시 필드 추가