#18960935 : added mobile configuration in module

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7537 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-06-22 07:32:16 +00:00
parent 5268e17aab
commit be1d9e25d2
6 changed files with 20 additions and 0 deletions

View file

@ -74,6 +74,9 @@
if($oDB->isIndexExists('sites', 'idx_domain')) return true;
if(!$oDB->isIndexExists('sites','unique_domain')) return true;
if(!$oDB->isColumnExists("modules", "use_mobile")) return true;
if(!$oDB->isColumnExists("modules", "mlayout_srl")) return true;
return false;
}
@ -298,6 +301,13 @@
$oDB->addIndex('sites','unique_domain',array('domain'),true);
}
if(!$oDB->isColumnExists("modules", "use_mobile")) {
$oDB->addColumn('modules','use_mobile','char',1,'N');
}
if(!$oDB->isColumnExists("modules", "mlayout_srl")) {
$oDB->addColumn('modules','mlayout_srl','number',11, 0);
}
return new Object(0, 'success_updated');
}