app/Http/Middleware/UpdateDatabaseSchema.php
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->migration_service
            ->updateSchema('\Fisharebest\Webtrees\Schema', 'WT_SCHEMA_VERSION', Webtrees::SCHEMA_VERSION);

        return $handler->handle($request);
    }
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->migration_service
            ->updateSchema('\Fisharebest\Webtrees\Schema', 'WT_SCHEMA_VERSION', Webtrees::SCHEMA_VERSION);

        return $handler->handle($request);
    }
public function process ( ServerRequestInterface $ request , RequestHandlerInterface $ handler ) : ResponseInterface { $ this -> migration_service -> updateSchema ( '\Fisharebest\Webtrees\Schema' , 'WT_SCHEMA_VERSION' , Webtrees :: SCHEMA_VERSION ) ; return $ handler -> handle ( $ request ) ; }
Update the database schema, if necessary.

@param ServerRequestInterface  $request
@param RequestHandlerInterface $handler

@return ResponseInterface
Update the database schema if necessary .