null, fn () => [] ); } Console::info('Migrating databases'); $this->migrateDatabases(); } /** * Migrate Databases. * * @return void * @throws Exception|Throwable */ private function migrateDatabases(): void { if ($this->project->getId() === 'console') { return; } // since required + default can't be used together // so first creating the attribute then bulk updating the attribute $this->createAttributeFromCollection($this->dbForProject, 'databases', 'type'); $this->dbForProject->updateDocuments('databases', new Document(['type' => 'sql'])); } }