Migration
in package
AbstractYes
Class Migration
Table of Contents
Properties
- $db : ConnectionInterface
- Database Connection instance
- $DBGroup : string|null
- The name of the database group to use.
- $forge : Forge
- Database Forge instance.
Methods
- __construct() : mixed
- down() : mixed
- Revert a migration step.
- getDBGroup() : string|null
- Returns the database group name this migration uses.
- up() : mixed
- Perform a migration step.
Properties
$db
Database Connection instance
protected
ConnectionInterface
$db
$DBGroup
The name of the database group to use.
protected
string|null
$DBGroup
$forge
Database Forge instance.
protected
Forge
$forge
Methods
__construct()
public
__construct([Forge|null $forge = null ]) : mixed
Parameters
- $forge : Forge|null = null
down()
Revert a migration step.
public
abstract down() : mixed
getDBGroup()
Returns the database group name this migration uses.
public
getDBGroup() : string|null
Return values
string|nullup()
Perform a migration step.
public
abstract up() : mixed