1
0
Fork 0
mirror of synced 2024-05-02 11:52:38 +12:00

fix(migration): add missing 'apis' attribute to projects collection

This change updates the V20 (1.5.x) migration script to create the
`apis` attribute in the `projects` collection since it was added to the
collections config.
This commit is contained in:
Steven Nguyen 2024-04-19 00:09:48 +00:00 committed by GitHub
parent 0919b2d06a
commit cd16542703
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -294,6 +294,13 @@ class V20 extends Migration
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 {
$this->projectDB->purgeCachedCollection($id);
} catch (Throwable $th) {