Merge pull request #7997 from appwrite/fix-missing-apis-attribute
Add missing 'apis' attribute to projects collection
This commit is contained in:
commit
a189abdb0a
|
@ -294,6 +294,13 @@ class V20 extends Migration
|
||||||
Console::warning("'oAuthProviders' from {$id}: {$th->getMessage()}");
|
Console::warning("'oAuthProviders' from {$id}: {$th->getMessage()}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create apis attribute
|
||||||
|
try {
|
||||||
|
$this->createAttributeFromCollection($this->projectDB, $id, 'apis');
|
||||||
|
} catch (Throwable $th) {
|
||||||
|
Console::warning("'apis' from {$id}: {$th->getMessage()}");
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->projectDB->purgeCachedCollection($id);
|
$this->projectDB->purgeCachedCollection($id);
|
||||||
} catch (Throwable $th) {
|
} catch (Throwable $th) {
|
||||||
|
|
Loading…
Reference in a new issue