mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 14:22:54 +09:00
Fix #2125 don't delete site_admin table if XML schema still exists
This commit is contained in:
parent
b6e1a4589a
commit
be1cad3182
1 changed files with 5 additions and 2 deletions
|
|
@ -65,7 +65,10 @@ class Module extends ModuleObject
|
|||
if ($oDB->isIndexExists('modules', 'idx_site_mid')) return true;
|
||||
if ($oDB->getColumnInfo('modules', 'site_srl')->default_value === null) return true;
|
||||
if ($oDB->getColumnInfo('module_config', 'site_srl')->default_value === null) return true;
|
||||
if ($oDB->isTableExists('site_admin')) return true;
|
||||
if ($oDB->isTableExists('site_admin') && !file_exists($this->module_path . 'schemas/site_admin.xml'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// Add domain_srl column
|
||||
if (!$oDB->isColumnExists('modules', 'domain_srl')) return true;
|
||||
|
|
@ -176,7 +179,7 @@ class Module extends ModuleObject
|
|||
}
|
||||
|
||||
// Remove the site_admin table.
|
||||
if ($oDB->isTableExists('site_admin'))
|
||||
if ($oDB->isTableExists('site_admin') && !file_exists($this->module_path . 'schemas/site_admin.xml'))
|
||||
{
|
||||
$oDB->dropTable('site_admin');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue