convertToNotNullable($schema, 'bbb_rooms', 'record'); $this->convertToNotNullable($schema, 'bbb_rooms', 'everyone_is_moderator'); $this->convertToNotNullable($schema, 'bbb_rooms', 'require_moderator'); $this->convertToNotNullable($schema, 'bbb_rooms', 'listen_only'); $this->convertToNotNullable($schema, 'bbb_rooms', 'media_check'); $this->convertToNotNullable($schema, 'bbb_rooms', 'clean_layout'); $this->convertToNotNullable($schema, 'bbb_restrictions', 'allow_recording'); return null; } private function convertToNotNullable(ISchemaWrapper $schema, string $table, string $column): void { if ($schema->hasTable($table)) { $table = $schema->getTable('bbb_rooms'); if ($table->hasColumn($column) && $table->getColumn($column)->getNotnull()) { $table->getColumn($column)->setNotnull(false); } } } }