Add warning when trying to export to backend that we did not import metadata from yet.
This commit is contained in:
@@ -193,6 +193,18 @@ class ExportCommand extends Command
|
||||
continue;
|
||||
}
|
||||
|
||||
if (null === ag($backend, 'import.lastSync', null)) {
|
||||
$this->logger->warning(
|
||||
'SYSTEM: Using export mode for [%(backend)]. server data is not yet imported. please run state:import',
|
||||
[
|
||||
'backend' => ag($backend, 'name'),
|
||||
]
|
||||
);
|
||||
|
||||
$export[ag($backends, 'name')] = $backend;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($minDate > $lastSync) {
|
||||
$minDate = $lastSync;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user