From 93de9a62ad96e43ab660f469a11d9330448573cc Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 30 Jul 2013 17:36:41 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=20=EC=83=81?= =?UTF-8?q?=ED=92=88=EC=9C=A0=ED=98=95=20=ED=95=84=EB=93=9C=EB=AA=85=20row?= =?UTF-8?q?=EB=A5=BC=20mod=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/configformupdate.php | 10 +++++----- extend/shop.extend2.php | 10 ++++++++++ install/shop.sql | 10 +++++----- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/adm/shop_admin/configformupdate.php b/adm/shop_admin/configformupdate.php index d02cda98d..034aff3ec 100644 --- a/adm/shop_admin/configformupdate.php +++ b/adm/shop_admin/configformupdate.php @@ -67,27 +67,27 @@ $sql = " update {$g4['shop_default_table']} de_type5_img_height = '$de_type5_img_height', de_mobile_type1_list_use = '$de_mobile_type1_list_use', de_mobile_type1_list_skin = '$de_mobile_type1_list_skin', - de_mobile_type1_list_row = '$de_mobile_type1_list_row', + de_mobile_type1_list_mod = '$de_mobile_type1_list_mod', de_mobile_type1_img_width = '$de_mobile_type1_img_width', de_mobile_type1_img_height = '$de_mobile_type1_img_height', de_mobile_type2_list_use = '$de_mobile_type2_list_use', de_mobile_type2_list_skin = '$de_mobile_type2_list_skin', - de_mobile_type2_list_row = '$de_mobile_type2_list_row', + de_mobile_type2_list_mod = '$de_mobile_type2_list_mod', de_mobile_type2_img_width = '$de_mobile_type2_img_width', de_mobile_type2_img_height = '$de_mobile_type2_img_height', de_mobile_type3_list_use = '$de_mobile_type3_list_use', de_mobile_type3_list_skin = '$de_mobile_type3_list_skin', - de_mobile_type3_list_row = '$de_mobile_type3_list_row', + de_mobile_type3_list_mod = '$de_mobile_type3_list_mod', de_mobile_type3_img_width = '$de_mobile_type3_img_width', de_mobile_type3_img_height = '$de_mobile_type3_img_height', de_mobile_type4_list_use = '$de_mobile_type4_list_use', de_mobile_type4_list_skin = '$de_mobile_type4_list_skin', - de_mobile_type4_list_row = '$de_mobile_type4_list_row', + de_mobile_type4_list_mod = '$de_mobile_type4_list_mod', de_mobile_type4_img_width = '$de_mobile_type4_img_width', de_mobile_type4_img_height = '$de_mobile_type4_img_height', de_mobile_type5_list_use = '$de_mobile_type5_list_use', de_mobile_type5_list_skin = '$de_mobile_type5_list_skin', - de_mobile_type5_list_row = '$de_mobile_type5_list_row', + de_mobile_type5_list_mod = '$de_mobile_type5_list_mod', de_mobile_type5_img_width = '$de_mobile_type5_img_width', de_mobile_type5_img_height = '$de_mobile_type5_img_height', de_rel_list_mod = '$de_rel_list_mod', diff --git a/extend/shop.extend2.php b/extend/shop.extend2.php index 995b31175..958049835 100644 --- a/extend/shop.extend2.php +++ b/extend/shop.extend2.php @@ -380,4 +380,14 @@ if (!isset($default['de_shop_skin'])) { ADD `de_shop_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `de_admin_info_email`, ADD `de_shop_mobile_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `de_shop_skin` ", false); } + +// 모바일 상품유형 필드 수정 +if (!sql_query(" select de_mobile_type1_list_mod from {$g4['shop_default_table']} ", false)) { + sql_query(" ALTER TABLE `{$g4['shop_default_table']}` + CHANGE `de_mobile_type1_list_row` `de_mobile_type1_list_mod` INT(11) NOT NULL DEFAULT '0', + CHANGE `de_mobile_type2_list_row` `de_mobile_type2_list_mod` INT(11) NOT NULL DEFAULT '0', + CHANGE `de_mobile_type3_list_row` `de_mobile_type3_list_mod` INT(11) NOT NULL DEFAULT '0', + CHANGE `de_mobile_type4_list_row` `de_mobile_type4_list_mod` INT(11) NOT NULL DEFAULT '0', + CHANGE `de_mobile_type5_list_row` `de_mobile_type5_list_mod` INT(11) NOT NULL DEFAULT '0' ", true); +} ?> \ No newline at end of file diff --git a/install/shop.sql b/install/shop.sql index 5675a7261..ad9a397de 100644 --- a/install/shop.sql +++ b/install/shop.sql @@ -216,27 +216,27 @@ CREATE TABLE IF NOT EXISTS `shop_default` ( `de_type5_img_height` int(11) NOT NULL DEFAULT '0', `de_mobile_type1_list_use` tinyint(4) NOT NULL DEFAULT '0', `de_mobile_type1_list_skin` varchar(255) NOT NULL DEFAULT '', - `de_mobile_type1_list_row` int(11) NOT NULL DEFAULT '0', + `de_mobile_type1_list_mod` int(11) NOT NULL DEFAULT '0', `de_mobile_type1_img_width` int(11) NOT NULL DEFAULT '0', `de_mobile_type1_img_height` int(11) NOT NULL DEFAULT '0', `de_mobile_type2_list_use` tinyint(4) NOT NULL DEFAULT '0', `de_mobile_type2_list_skin` varchar(255) NOT NULL DEFAULT '', - `de_mobile_type2_list_row` int(11) NOT NULL DEFAULT '0', + `de_mobile_type2_list_mod` int(11) NOT NULL DEFAULT '0', `de_mobile_type2_img_width` int(11) NOT NULL DEFAULT '0', `de_mobile_type2_img_height` int(11) NOT NULL DEFAULT '0', `de_mobile_type3_list_use` tinyint(4) NOT NULL DEFAULT '0', `de_mobile_type3_list_skin` varchar(255) NOT NULL DEFAULT '', - `de_mobile_type3_list_row` int(11) NOT NULL DEFAULT '0', + `de_mobile_type3_list_mod` int(11) NOT NULL DEFAULT '0', `de_mobile_type3_img_width` int(11) NOT NULL DEFAULT '0', `de_mobile_type3_img_height` int(11) NOT NULL DEFAULT '0', `de_mobile_type4_list_use` tinyint(4) NOT NULL DEFAULT '0', `de_mobile_type4_list_skin` varchar(255) NOT NULL DEFAULT '', - `de_mobile_type4_list_row` int(11) NOT NULL DEFAULT '0', + `de_mobile_type4_list_mod` int(11) NOT NULL DEFAULT '0', `de_mobile_type4_img_width` int(11) NOT NULL DEFAULT '0', `de_mobile_type4_img_height` int(11) NOT NULL DEFAULT '0', `de_mobile_type5_list_use` tinyint(4) NOT NULL DEFAULT '0', `de_mobile_type5_list_skin` varchar(255) NOT NULL DEFAULT '', - `de_mobile_type5_list_row` int(11) NOT NULL DEFAULT '0', + `de_mobile_type5_list_mod` int(11) NOT NULL DEFAULT '0', `de_mobile_type5_img_width` int(11) NOT NULL DEFAULT '0', `de_mobile_type5_img_height` int(11) NOT NULL DEFAULT '0', `de_rel_list_mod` int(11) NOT NULL DEFAULT '0',