diff --git a/extend/shop.extend2.php b/extend/shop.extend2.php index 5ef3b213f..89a16d1a9 100644 --- a/extend/shop.extend2.php +++ b/extend/shop.extend2.php @@ -627,4 +627,14 @@ if(!sql_query(" select od_delivery_company from {$g5['g5_shop_order_table']} lim sql_query(" ALTER TABLE `{$g5['g5_shop_order_table']}` CHANGE `dl_id` `od_delivery_company` varchar(255) NOT NULL DEFAULT '' ", true); } + +// 주문서 삭제 테이블추가 +if(!sql_query(" DESCRIBE `{$g5['g5_shop_order_delete_table']}` ", false)) { + sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['g5_shop_order_delete_table']}` ( + `de_id` int(11) NOT NULL AUTO_INCREMENT, + `de_key` varchar(255) NOT NULL, + `de_data` longtext NOT NULL, + PRIMARY KEY (`de_id`) + )", true); +} ?> diff --git a/install/gnuboard5shop.sql b/install/gnuboard5shop.sql index d0ee22942..bc4105295 100644 --- a/install/gnuboard5shop.sql +++ b/install/gnuboard5shop.sql @@ -702,6 +702,21 @@ CREATE TABLE IF NOT EXISTS `g5_shop_order_address` ( -- -------------------------------------------------------- +-- +-- Table structure for table `g5_shop_order_delete` +-- + +DROP TABLE IF EXISTS `g5_shop_order_delete`; +CREATE TABLE IF NOT EXISTS `g5_shop_order_delete` ( + `de_id` int(11) NOT NULL AUTO_INCREMENT, + `de_key` varchar(255) NOT NULL, + `de_data` longtext NOT NULL, + PRIMARY KEY (`de_id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- -------------------------------------------------------- + + -- -- Table structure for table `g5_shop_personalpay` -- diff --git a/install/install_db.php b/install/install_db.php index f5b82b6eb..389403d3f 100644 --- a/install/install_db.php +++ b/install/install_db.php @@ -491,6 +491,7 @@ if($g5_shop_install) { fwrite($f, "\$g5['g5_shop_new_win_table'] = G5_SHOP_TABLE_PREFIX.'new_win'; // 새창 테이블\n"); fwrite($f, "\$g5['g5_shop_onlinecalc_table'] = G5_SHOP_TABLE_PREFIX.'onlinecalc'; // 온라인견적 테이블\n"); fwrite($f, "\$g5['g5_shop_order_table'] = G5_SHOP_TABLE_PREFIX.'order'; // 주문서 테이블\n"); + fwrite($f, "\$g5['g5_shop_order_delete_table'] = G5_SHOP_TABLE_PREFIX.'order_delete'; // 주문서 삭제 테이블\n"); fwrite($f, "\$g5['g5_shop_wish_table'] = G5_SHOP_TABLE_PREFIX.'wish'; // 보관함(위시리스트) 테이블\n"); fwrite($f, "\$g5['g5_shop_coupon_table'] = G5_SHOP_TABLE_PREFIX.'coupon'; // 쿠폰정보 테이블\n"); fwrite($f, "\$g5['g5_shop_coupon_log_table'] = G5_SHOP_TABLE_PREFIX.'coupon_log'; // 쿠폰사용정보 테이블\n");