mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: case for console projects
This commit is contained in:
@@ -106,6 +106,9 @@ abstract class Migration
|
||||
if ($collection['$collection'] !== Database::METADATA) {
|
||||
continue;
|
||||
}
|
||||
if ($collection['$id'] === 'databases') {
|
||||
continue;
|
||||
}
|
||||
$sum = 0;
|
||||
$nextDocument = null;
|
||||
$collectionCount = $this->projectDB->count($collection['$id']);
|
||||
|
||||
@@ -20,6 +20,10 @@ class V14 extends Migration
|
||||
global $register;
|
||||
$this->pdo = $register->get('db');
|
||||
|
||||
if ($this->project->getId() === 'console' && $this->project->getInternalId() !== 'console') {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable SubQueries for Speed.
|
||||
*/
|
||||
@@ -56,8 +60,7 @@ class V14 extends Migration
|
||||
Console::warning($th->getMessage());
|
||||
}
|
||||
|
||||
|
||||
if ($this->project->getId() === 'console') {
|
||||
if ($this->project->getInternalId() === 'console') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user