diff --git a/app/controllers/api/migrations.php b/app/controllers/api/migrations.php index f292a90a77..85751811ba 100644 --- a/app/controllers/api/migrations.php +++ b/app/controllers/api/migrations.php @@ -401,13 +401,6 @@ App::post('/v1/migrations/csv') $fileSize = $deviceForImports->getFileSize($newPath); $resources = Transfer::extractServices([Transfer::GROUP_DATABASES]); - // full path - $newPath = str_ireplace( - $deviceForImports->getRoot(), - $deviceForImports->getRoot() . DIRECTORY_SEPARATOR, - $newPath - ); - $migration = $dbForProject->createDocument('migrations', new Document([ '$id' => $migrationId, 'status' => 'pending',