|
12 | 12 | use Appwrite\Services\Users; |
13 | 13 | use Utopia\Database\Database as UtopiaDatabase; |
14 | 14 | use Utopia\Database\DateTime as UtopiaDateTime; |
15 | | -use Utopia\Database\Document as UtopiaDocument; |
16 | 15 | use Utopia\Migration\Exception; |
17 | 16 | use Utopia\Migration\Resource; |
18 | 17 | use Utopia\Migration\Resources\Auth\Hash; |
@@ -78,9 +77,9 @@ public function __construct( |
78 | 77 | protected string $project, |
79 | 78 | protected string $endpoint, |
80 | 79 | protected string $key, |
| 80 | + callable $getDatabasesDB, |
81 | 81 | protected string $source = self::SOURCE_API, |
82 | 82 | protected ?UtopiaDatabase $dbForProject = null, |
83 | | - callable $getDatabasesDB |
84 | 83 | ) { |
85 | 84 | $this->client = (new Client()) |
86 | 85 | ->setEndpoint($endpoint) |
@@ -114,7 +113,6 @@ public static function getName(): string |
114 | 113 | } |
115 | 114 |
|
116 | 115 | /** |
117 | | - * Create a reader instance for general operations (not database-specific) |
118 | 116 | * |
119 | 117 | * @return Reader |
120 | 118 | * @throws \Exception |
@@ -734,7 +732,6 @@ private function exportDatabases(int $batchSize, array $resources = []): void |
734 | 732 | /** |
735 | 733 | * @param string $databaseName |
736 | 734 | * @param int $batchSize |
737 | | - * @param array<Resource> $databases |
738 | 735 | * @throws Exception |
739 | 736 | */ |
740 | 737 | private function exportEntities(string $databaseName, int $batchSize): void |
@@ -1694,7 +1691,6 @@ private function exportTablesDB(int $batchSize, array $resources) |
1694 | 1691 | * |
1695 | 1692 | * @param int $batchSize |
1696 | 1693 | * @param array $resources |
1697 | | - * @param array $documentsDBDatabases |
1698 | 1694 | */ |
1699 | 1695 | private function exportDocumentsDB(int $batchSize, array $resources): void |
1700 | 1696 | { |
|
0 commit comments