mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 13:19:56 +09:00
#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:
parent
5268e17aab
commit
be1d9e25d2
6 changed files with 20 additions and 0 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -164,6 +164,8 @@
|
|||
unset($extra_vars->module);
|
||||
unset($extra_vars->module_category_srl);
|
||||
unset($extra_vars->layout_srl);
|
||||
unset($extra_vars->mlayout_srl);
|
||||
unset($extra_vars->use_mobile);
|
||||
unset($extra_vars->menu_srl);
|
||||
unset($extra_vars->site_srl);
|
||||
unset($extra_vars->mid);
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@
|
|||
<column name="modules.module" alias="module" />
|
||||
<column name="modules.module_category_srl" alias="module_category_srl" />
|
||||
<column name="modules.layout_srl" alias="layout_srl" />
|
||||
<column name="modules.mlayout_srl" alias="mlayout_srl" />
|
||||
<column name="modules.use_mobile" alias="use_mobile" />
|
||||
<column name="modules.menu_srl" alias="menu_srl" />
|
||||
<column name="modules.mid" alias="mid" />
|
||||
<column name="modules.skin" alias="skin" />
|
||||
|
|
|
|||
|
|
@ -19,5 +19,7 @@
|
|||
<column name="header_text" var="header_text" />
|
||||
<column name="footer_text" var="footer_text" />
|
||||
<column name="regdate" default="curdate()" />
|
||||
<column name="mlayout_srl" var="mlayout_srl" />
|
||||
<column name="use_mobile" var="use_mobile" default="N" />
|
||||
</columns>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@
|
|||
<column name="open_rss" var="open_rss" default="Y" notnull="notnull" />
|
||||
<column name="header_text" var="header_text" default="" />
|
||||
<column name="footer_text" var="footer_text" default="" />
|
||||
<column name="mlayout_srl" var="mlayout_srl" />
|
||||
<column name="use_mobile" var="use_mobile" default="N" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="site_srl" var="site_srl" default="0" filter="number" notnull="notnull" />
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
<column name="module" type="varchar" size="80" notnull="notnull" index="idx_module" />
|
||||
<column name="module_category_srl" type="number" size="11" default="0" index="idx_module_category" />
|
||||
<column name="layout_srl" type="number" size="11" default="0" />
|
||||
<column name="use_mobile" type="char" size="1" default="N" />
|
||||
<column name="mlayout_srl" type="number" size="11" default="0" />
|
||||
<column name="menu_srl" type="number" size="11" default="0" />
|
||||
<column name="site_srl" type="number" size="11" notnull="notnull" default="0" />
|
||||
<column name="mid" type="varchar" size="40" notnull="notnull" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue