mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 01:42:14 +09:00
Change data type of module_config.config to bigtext
xpressengine/xe-core#2179 xpressengine/xe-core#2180
This commit is contained in:
parent
6d6acd5c9e
commit
a8da651f29
4 changed files with 17 additions and 3 deletions
|
|
@ -105,6 +105,13 @@ class module extends ModuleObject
|
|||
$oModuleModel = getModel('module');
|
||||
$moduleConfig = $oModuleModel->getModuleConfig('module');
|
||||
if(!$moduleConfig->isUpdateFixedValue) return true;
|
||||
|
||||
// check module_config data type
|
||||
$column_info = $oDB->getColumnInfo('module_config', 'config');
|
||||
if($column_info->xetype !== 'bigtext')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -379,6 +386,13 @@ class module extends ModuleObject
|
|||
$moduleConfig->isUpdateFixedValue = TRUE;
|
||||
$output = $oModuleController->updateModuleConfig('module', $moduleConfig);
|
||||
}
|
||||
|
||||
// check module_config data type
|
||||
$column_info = $oDB->getColumnInfo('module_config', 'config');
|
||||
if($column_info->xetype !== 'bigtext')
|
||||
{
|
||||
$oDB->modifyColumn('module_config', 'config', 'bigtext');
|
||||
}
|
||||
|
||||
return new Object(0, 'success_updated');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue