remove duplication, kudos @rugk

This commit is contained in:
El RIDO 2022-01-22 22:11:49 +01:00
parent c725b4f0fe
commit 35ef64ff79
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92
1 changed files with 1 additions and 1 deletions

View File

@ -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 )"