$options */ public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { $schema = $schemaClosure(); if (!$schema->hasTable('educai_settings')) { return $schema; } $table = $schema->getTable('educai_settings'); if (!$table->hasColumn('bot_creation_restricted')) { $table->addColumn('bot_creation_restricted', Types::BOOLEAN, [ 'notnull' => true, 'default' => false, ]); } if (!$table->hasColumn('bot_creation_group')) { $table->addColumn('bot_creation_group', Types::STRING, [ 'notnull' => false, 'length' => 255, ]); } return $schema; } }