Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 412b1e643b | |||
| eed25a87b2 |
@@ -100,6 +100,11 @@ class ImportService
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!$this->entityTypeExists($entityType)) {
|
||||
$io->writeLine("Skipping {$entityType} (module not installed)");
|
||||
continue;
|
||||
}
|
||||
|
||||
$io->writeLine("Importing {$entityType}...");
|
||||
|
||||
$result = $this->entityImporter->import(
|
||||
@@ -171,4 +176,14 @@ class ImportService
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function entityTypeExists(string $entityType): bool
|
||||
{
|
||||
try {
|
||||
$this->entityManager->getRDBRepository($entityType);
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "DataMigration",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.3",
|
||||
"acceptableVersions": [
|
||||
">=8.0.0"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user