mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +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
|
|
@ -39,8 +39,8 @@ class DBCubrid extends DB
|
|||
'varchar' => 'character varying',
|
||||
'char' => 'character',
|
||||
'tinytext' => 'character varying(256)',
|
||||
'text' => 'character varying(1073741823)',
|
||||
'bigtext' => 'character varying(1073741823)',
|
||||
'text' => 'character varying(1073741823)',
|
||||
'date' => 'character varying(14)',
|
||||
'float' => 'float',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ class DBMssql extends DB
|
|||
'number' => 'int',
|
||||
'varchar' => 'nvarchar',
|
||||
'char' => 'nchar',
|
||||
'text' => 'ntext',
|
||||
'bigtext' => 'ntext',
|
||||
'text' => 'ntext',
|
||||
'date' => 'nvarchar(14)',
|
||||
'float' => 'float',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<table name="module_config">
|
||||
<column name="module" type="varchar" size="250" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="site_srl" type="number" size="11" notnull="notnull" />
|
||||
<column name="config" type="text" />
|
||||
<column name="config" type="bigtext" />
|
||||
<column name="regdate" type="date" />
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue