mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +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
140d7498e8
commit
34f3c8bf1f
@ -455,7 +455,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