Explorar el Código

remove duplication, kudos @rugk

El RIDO hace 4 años
padre
commit
35ef64ff79
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/Data/Database.php

+ 1 - 1
lib/Data/Database.php

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