mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
SourceAppwrite
This commit is contained in:
parent
73280fd173
commit
75ec86eed4
1 changed files with 2 additions and 7 deletions
|
|
@ -20,6 +20,7 @@ use Utopia\Logger\Log;
|
|||
use Utopia\Logger\Log\Breadcrumb;
|
||||
use Utopia\Migration\Destination;
|
||||
use Utopia\Migration\Destinations\Appwrite as DestinationAppwrite;
|
||||
use Utopia\Migration\Sources\Appwrite as SourceAppwrite;
|
||||
use Utopia\Migration\Exception as MigrationException;
|
||||
use Utopia\Migration\Source;
|
||||
use Utopia\Migration\Sources\Appwrite;
|
||||
|
|
@ -124,7 +125,7 @@ class Migrations extends Action
|
|||
$credentials['password'],
|
||||
$credentials['port'],
|
||||
),
|
||||
Appwrite::getName() => new Appwrite(
|
||||
SourceAppwrite::getName() => new SourceAppwrite(
|
||||
$credentials['projectId'],
|
||||
str_starts_with($credentials['endpoint'], 'http://localhost/v1') ? 'http://appwrite/v1' : $credentials['endpoint'],
|
||||
$credentials['apiKey']
|
||||
|
|
@ -303,12 +304,6 @@ class Migrations extends Action
|
|||
|
||||
$source->report();
|
||||
|
||||
$destination = new DestinationsAppwrite(
|
||||
$projectDocument->getId(),
|
||||
'http://appwrite/v1',
|
||||
$tempAPIKey['secret'],
|
||||
);
|
||||
|
||||
$transfer = new Transfer(
|
||||
$source,
|
||||
$destination
|
||||
|
|
|
|||
Loading…
Reference in a new issue