From be70e9b21dc3b2e108a90a39e4ce6bbcb8957110 Mon Sep 17 00:00:00 2001 From: ngleader Date: Fri, 5 Nov 2010 01:11:59 +0000 Subject: [PATCH] fixed git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7799 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/counter/counter.class.php | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/modules/counter/counter.class.php b/modules/counter/counter.class.php index 163b56032..e4d1aa2a5 100644 --- a/modules/counter/counter.class.php +++ b/modules/counter/counter.class.php @@ -30,12 +30,7 @@ // 카운터에 site_srl추가 $oDB = &DB::getInstance(); if(!$oDB->isColumnExists('counter_log', 'site_srl')) return true; - if ($db_info->db_type == 'cubrid') { - if(!$oDB->isIndexExists('counter_log', $oDB->prefix.'counter_log_idx_site_counter_log')) return true; - } - else { - if(!$oDB->isIndexExists('counter_log','idx_site_counter_log')) return true; - } + if(!$oDB->isIndexExists('counter_log','idx_site_counter_log')) return true; return false; } @@ -46,16 +41,8 @@ $db_info = Context::getDBInfo (); // 카운터에 site_srl추가 $oDB = &DB::getInstance(); - if(!$oDB->isColumnExists('counter_log', 'site_srl')) - $oDB->addColumn('counter_log','site_srl','number',11,0,true); - if ($db_info->db_type == 'cubrid') { - if(!$oDB->isIndexExists('counter_log',$oDB->prefix.'counter_log_idx_site_counter_log')) - $oDB->addIndex('counter_log',$oDB->prefix.'counter_log_idx_site_counter_log',array('site_srl','ipaddress'),false); - } - else { - if(!$oDB->isIndexExists('counter_log','idx_site_counter_log')) - $oDB->addIndex('counter_log','idx_site_counter_log',array('site_srl','ipaddress'),false); - } + if(!$oDB->isColumnExists('counter_log', 'site_srl')) $oDB->addColumn('counter_log','site_srl','number',11,0,true); + if(!$oDB->isIndexExists('counter_log','idx_site_counter_log')) $oDB->addIndex('counter_log','idx_site_counter_log',array('site_srl','ipaddress'),false); return new Object(0, 'success_updated'); }