PHP Class Bolt\Controller\Backend\Database

Prior to v3.0 this functionality primarily existed in the monolithic Bolt\Controllers\Backend class.
Author: Gawain Lynch ([email protected])
Inheritance: extends BackendBase
显示文件 Open project: bolt/bolt

Public Methods

Method Description
check ( Request $request ) : TemplateResponse Check the database for missing tables and columns.
update ( Request $request ) : RedirectResponse Check the database, create tables, add missing/new columns to tables.
updateResult ( ) : TemplateResponse Show the result of database updates.

Protected Methods

Method Description
addRoutes ( Silex\ControllerCollection $c )
schemaManager ( ) : Manager

Method Details

addRoutes() protected method

protected addRoutes ( Silex\ControllerCollection $c )
$c Silex\ControllerCollection

check() public method

Does not do actual repairs.
public check ( Request $request ) : TemplateResponse
$request Symfony\Component\HttpFoundation\Request
return Bolt\Response\TemplateResponse

schemaManager() protected method

protected schemaManager ( ) : Manager
return Bolt\Storage\Database\Schema\Manager

update() public method

Check the database, create tables, add missing/new columns to tables.
public update ( Request $request ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request The Symfony Request
return Symfony\Component\HttpFoundation\RedirectResponse

updateResult() public method

Show the result of database updates.
public updateResult ( ) : TemplateResponse
return Bolt\Response\TemplateResponse