mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
credentials
This commit is contained in:
parent
d29740f0d7
commit
3800ccee1d
1 changed files with 7 additions and 13 deletions
|
|
@ -268,6 +268,13 @@ class Migrations extends Action
|
||||||
$project = $this->project;
|
$project = $this->project;
|
||||||
$projectDocument = $this->dbForConsole->getDocument('projects', $project->getId());
|
$projectDocument = $this->dbForConsole->getDocument('projects', $project->getId());
|
||||||
$tempAPIKey = $this->generateAPIKey($projectDocument);
|
$tempAPIKey = $this->generateAPIKey($projectDocument);
|
||||||
|
|
||||||
|
$this->credentials = [
|
||||||
|
'projectId' => $projectDocument->getId(),
|
||||||
|
'endpoint' => 'http://appwrite/v1',
|
||||||
|
'apiKey' => $tempAPIKey['secret'],
|
||||||
|
];
|
||||||
|
|
||||||
$transfer = $source = $destination = null;
|
$transfer = $source = $destination = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
@ -279,19 +286,6 @@ class Migrations extends Action
|
||||||
|
|
||||||
$log->addTag('type', $migration->getAttribute('source'));
|
$log->addTag('type', $migration->getAttribute('source'));
|
||||||
|
|
||||||
// if (
|
|
||||||
// $migration->getAttribute('source') === SourceAppwrite::getName() ||
|
|
||||||
// $migration->getAttribute('destination') === DestinationAppwrite::getName()
|
|
||||||
// ) {
|
|
||||||
// $migration->setAttribute('credentials', );
|
|
||||||
// }
|
|
||||||
|
|
||||||
$this->credentials = [
|
|
||||||
'projectId' => $projectDocument->getId(),
|
|
||||||
'endpoint' => 'http://appwrite/v1',
|
|
||||||
'apiKey' => $tempAPIKey['secret'],
|
|
||||||
];
|
|
||||||
|
|
||||||
$source = $this->processSource($migration);
|
$source = $this->processSource($migration);
|
||||||
$destination = $this->processDestination($migration);
|
$destination = $this->processDestination($migration);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue