mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
* 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:
parent
0cf69a296b
commit
6bc8cdcf30
@ -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';
|
||||
}
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user