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

View file

@ -822,7 +822,7 @@ class Database extends AbstractData
{
list($main_key, $after_key) = self::_getPrimaryKeyClauses('id');
$charType = self::$_type === 'oci' ? 'VARCHAR2(16)' : 'CHAR(16)';
$textType = self::$_type === 'oci' ? 'VARCHAR2(4000)' : 'TEXT';
$textType = self::_getMetaType();
self::$_db->exec(
'CREATE TABLE ' . self::_sanitizeIdentifier('config') .
" ( id $charType NOT NULL$main_key, value $textType$after_key )"