From 73b2a14ea31f4d503d8f045dc1f435907dc510b5 Mon Sep 17 00:00:00 2001 From: Darshan Date: Wed, 16 Apr 2025 11:55:04 +0530 Subject: [PATCH] update: changes as per migrations lib. --- app/controllers/api/migrations.php | 4 ++-- composer.lock | 4 ++-- src/Appwrite/Platform/Workers/Migrations.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/api/migrations.php b/app/controllers/api/migrations.php index 01c7a260f2..7dd8fe42f5 100644 --- a/app/controllers/api/migrations.php +++ b/app/controllers/api/migrations.php @@ -22,7 +22,7 @@ use Utopia\Database\Validator\Query\Cursor; use Utopia\Database\Validator\UID; use Utopia\Migration\Resource; use Utopia\Migration\Sources\Appwrite; -use Utopia\Migration\Sources\Csv; +use Utopia\Migration\Sources\CSV; use Utopia\Migration\Sources\Firebase; use Utopia\Migration\Sources\NHost; use Utopia\Migration\Sources\Supabase; @@ -363,7 +363,7 @@ App::post('/v1/migrations/csv') '$id' => $migrationId, 'status' => 'pending', 'stage' => 'init', - 'source' => Csv::getName(), + 'source' => CSV::getName(), 'destination' => Appwrite::class::getName(), 'resources' => $resources, 'resourceId' => $resourceId, diff --git a/composer.lock b/composer.lock index 5369b6da5a..c25ec33591 100644 --- a/composer.lock +++ b/composer.lock @@ -3955,7 +3955,7 @@ "source": { "type": "git", "url": "https://github.com/utopia-php/migration", - "reference": "52fb030dfb988233dee96845b9c481542fe1a360" + "reference": "9088ef1079da3fb13b8abc3821feee618475a0c3" }, "require": { "appwrite/appwrite": "11.*", @@ -4011,7 +4011,7 @@ "upf", "utopia" ], - "time": "2025-04-12T11:28:18+00:00" + "time": "2025-04-16T06:21:15+00:00" }, { "name": "utopia-php/orchestration", diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 417a42fa9c..c4182f8deb 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -18,7 +18,7 @@ use Utopia\Migration\Destinations\Appwrite as DestinationAppwrite; use Utopia\Migration\Exception as MigrationException; use Utopia\Migration\Source; use Utopia\Migration\Sources\Appwrite as SourceAppwrite; -use Utopia\Migration\Sources\Csv; +use Utopia\Migration\Sources\CSV; use Utopia\Migration\Sources\Firebase; use Utopia\Migration\Sources\NHost; use Utopia\Migration\Sources\Supabase; @@ -136,7 +136,7 @@ class Migrations extends Action $credentials['endpoint'] === 'http://localhost/v1' ? 'http://appwrite/v1' : $credentials['endpoint'], $credentials['apiKey'], ), - Csv::getName() => new Csv( + CSV::getName() => new CSV( $resourceId, $migrationOptions['path'], $this->deviceForCsvImports,