remove duplication, kudos @rugk
This commit is contained in:
parent
c725b4f0fe
commit
35ef64ff79
@ -822,7 +822,7 @@ class Database extends AbstractData
|
|||||||
{
|
{
|
||||||
list($main_key, $after_key) = self::_getPrimaryKeyClauses('id');
|
list($main_key, $after_key) = self::_getPrimaryKeyClauses('id');
|
||||||
$charType = self::$_type === 'oci' ? 'VARCHAR2(16)' : 'CHAR(16)';
|
$charType = self::$_type === 'oci' ? 'VARCHAR2(16)' : 'CHAR(16)';
|
||||||
$textType = self::$_type === 'oci' ? 'VARCHAR2(4000)' : 'TEXT';
|
$textType = self::_getMetaType();
|
||||||
self::$_db->exec(
|
self::$_db->exec(
|
||||||
'CREATE TABLE ' . self::_sanitizeIdentifier('config') .
|
'CREATE TABLE ' . self::_sanitizeIdentifier('config') .
|
||||||
" ( id $charType NOT NULL$main_key, value $textType$after_key )"
|
" ( id $charType NOT NULL$main_key, value $textType$after_key )"
|
||||||
|
Loading…
Reference in New Issue
Block a user