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',