Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 412b1e643b | |||
| eed25a87b2 | |||
| 838ef5c2c6 | |||
| 319e2df45e | |||
| dc2d6c57fe | |||
| 4c3ec67a7d |
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"labels": {
|
||||
"Data Migration": "העברת נתונים"
|
||||
"Data Migration": "העברת נתונים",
|
||||
"Custom Development": "פיתוח עצמאי"
|
||||
},
|
||||
"descriptions": {
|
||||
"dataMigration": "ייצוא וייבוא נתוני תיקים בין מערכות EspoCRM"
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
{
|
||||
"system": {
|
||||
"customDev": {
|
||||
"label": "Custom Development",
|
||||
"itemList": [
|
||||
"__APPEND__",
|
||||
{
|
||||
"url": "#Admin/dataMigration",
|
||||
"label": "Data Migration",
|
||||
"iconClass": "fas fa-exchange-alt",
|
||||
"description": "dataMigration",
|
||||
"view": "modules/data-migration/views/admin/data-migration",
|
||||
"order": 85
|
||||
"order": 50
|
||||
}
|
||||
]
|
||||
],
|
||||
"order": 30
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.0",
|
||||
"version": "1.1.3",
|
||||
"acceptableVersions": [
|
||||
">=8.0.0"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user