forked from extern/egroupware
egw_async: handling the ##last-check-run## problem during restore. The line will be skipped.
This commit is contained in:
parent
2f28409738
commit
6bb48b2b87
@ -232,8 +232,14 @@
|
|||||||
}
|
}
|
||||||
if ($table) // do we already reached the data part
|
if ($table) // do we already reached the data part
|
||||||
{
|
{
|
||||||
|
$import = true;
|
||||||
$data = $this->csv_split($line,$cols);
|
$data = $this->csv_split($line,$cols);
|
||||||
|
if ($table == 'egw_async' && in_array('##last-check-run##',$data)) {
|
||||||
|
echo '<p>'.lang("Line %1: '%2'<br><b>csv data does contain ##last-check-run## of table %3 ==> ignored</b>",$n,$line,$table)."</p>\n";
|
||||||
|
echo 'data=<pre>'.print_r($data,true)."</pre>\n";
|
||||||
|
$import = false;
|
||||||
|
}
|
||||||
|
if ($import) {
|
||||||
if (count($data) == count($cols))
|
if (count($data) == count($cols))
|
||||||
{
|
{
|
||||||
if ($convert_to_system_charset && !$this->db->capabilities['client_encoding'])
|
if ($convert_to_system_charset && !$this->db->capabilities['client_encoding'])
|
||||||
@ -249,6 +255,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// updated the sequences, if the DB uses them
|
// updated the sequences, if the DB uses them
|
||||||
foreach($this->schemas as $table => $schema)
|
foreach($this->schemas as $table => $schema)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user