* Admin/Setup: fixed restore always converted longtext columns to text and therefore truncating them to 64k on MySQL, also fixed backup to report them correctly in backup of schema

This commit is contained in:
Ralf Becker 2013-01-21 09:50:50 +00:00
parent 0cf69a296b
commit 6bc8cdcf30
2 changed files with 4 additions and 1 deletions

View File

@ -454,7 +454,7 @@ class db_backup
// if column is longtext in current schema, convert text to longtext, in case user already updated column
foreach($schema['fd'] as $col => &$def)
{
if ($def['type'] == 'text' && $this->db->get_column_attribute($col, $table, true, 'type') == 'longtext')
if ($def['type'] == 'text' && $this->db->get_column_attribute($col, $table_name, true, 'type') == 'longtext')
{
$def['type'] = 'longtext';
}

View File

@ -1184,6 +1184,9 @@ class schema_proc
$type = method_exists($this->dict,'MetaType') ? $this->dict->MetaType($column) : strtoupper($column->type);
// fix longtext not correctly handled by ADOdb
if ($type == 'X' && $column->type == 'longtext') $type = 'XL';
static $ado_type2egw = array(
'C' => 'varchar',
'C2' => 'varchar',