From 0db7a79eab13f9db8d17637ec5414ec55c3b7c37 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 24 May 2013 13:31:48 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=B5=EC=85=98=EA=B4=80=EB=A0=A8=20?= =?UTF-8?q?=ED=95=84=EB=93=9C=20cart=EC=97=90=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/shop.extend.php | 11 +++++++++++ install/shop.sql | 10 ++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/extend/shop.extend.php b/extend/shop.extend.php index d7d40ca1b..7209fb577 100644 --- a/extend/shop.extend.php +++ b/extend/shop.extend.php @@ -116,6 +116,17 @@ if(!$result) { ADD `od_mobile` TINYINT(4) NOT NULL DEFAULT '0' AFTER `od_time` ", false); } +// ct_option 추가 +$sql = " select ct_option from {$g4['shop_cart_table']} limit 1 "; +$result = sql_query($sql, false); +if(!$result) { + sql_query(" ALTER TABLE `{$g4['shop_cart_table']}` + ADD `ct_option` VARCHAR(255) NOT NULL DEFAULT '' AFTER `ct_stock_use`, + ADD `io_id` VARCHAR(255) NOT NULL DEFAULT '' AFTER `ct_qty`, + ADD `io_type` TINYINT(4) NOT NULL DEFAULT '0' AFTER `io_id`, + ADD `io_price` INT(11) NOT NULL DEFAULT '0' AFTER `io_type` ", false); +} + // it_brand 추가 /* $sql = " select it_brand from {$g4['shop_item_table']} limit 1 "; diff --git a/install/shop.sql b/install/shop.sql index e349ace59..fa17cb320 100644 --- a/install/shop.sql +++ b/install/shop.sql @@ -58,19 +58,17 @@ CREATE TABLE IF NOT EXISTS `shop_cart` ( `uq_id` bigint(20) unsigned NOT NULL, `it_id` varchar(20) NOT NULL DEFAULT '', `it_name` varchar(255) NOT NULL DEFAULT '', - `it_opt1` varchar(255) NOT NULL DEFAULT '', - `it_opt2` varchar(255) NOT NULL DEFAULT '', - `it_opt3` varchar(255) NOT NULL DEFAULT '', - `it_opt4` varchar(255) NOT NULL DEFAULT '', - `it_opt5` varchar(255) NOT NULL DEFAULT '', - `it_opt6` varchar(255) NOT NULL DEFAULT '', `ct_status` enum('쇼핑','주문','준비','배송','완료','취소','반품','품절') NOT NULL DEFAULT '쇼핑', `ct_history` text NOT NULL, `ct_price` int(11) NOT NULL DEFAULT '0', `ct_point` int(11) NOT NULL DEFAULT '0', `ct_point_use` tinyint(4) NOT NULL DEFAULT '0', `ct_stock_use` tinyint(4) NOT NULL DEFAULT '0', + `ct_option` varchar(255) NOT NULL DEFAULT '', `ct_qty` int(11) NOT NULL DEFAULT '0', + `io_id` varchar(255) NOT NULL DEFAULT '', + `io_type` tinyint(4) NOT NULL DEFAULT '0', + `io_price` int(11) NOT NULL DEFAULT '0', `ct_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `ct_ip` varchar(25) NOT NULL DEFAULT '', `ct_send_cost` varchar(255) NOT NULL,