mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
* Admin/Setup: restore of 14.1 backup was not working (backup file itself is correct)
caused by typo in json_decode of schema
This commit is contained in:
parent
b6b660ee16
commit
eeafdea313
@ -457,15 +457,7 @@ class db_backup
|
||||
if (substr($line,0,8) == 'schema: ')
|
||||
{
|
||||
// create the tables in the backup set
|
||||
$schema = trim(substr($line,8));
|
||||
if ($schema[0] == 'a' && $schema[1] == ':')
|
||||
{
|
||||
$this->schemas = php_safe_unserialize($schema);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->schema = json_decode($schema, true);
|
||||
}
|
||||
$this->schemas = json_php_unserialize(trim(substr($line,8)));
|
||||
foreach($this->schemas as $table_name => $schema)
|
||||
{
|
||||
// if column is longtext in current schema, convert text to longtext, in case user already updated column
|
||||
|
Loading…
Reference in New Issue
Block a user