Documentation

Migration
in package

Class Migration

Table of Contents

$db  : ConnectionInterface
Database Connection instance
$DBGroup  : string
The name of the database group to use.
$forge  : Forge
Database Forge instance.
__construct()  : mixed
Constructor.
down()  : mixed
Revert a migration step.
getDBGroup()  : string
Returns the database group name this migration uses.
up()  : mixed
Perform a migration step.

Properties

$DBGroup

The name of the database group to use.

protected string $DBGroup

Methods

__construct()

Constructor.

public __construct([Forge $forge = null ]) : mixed
Parameters
$forge : Forge = null
Return values
mixed

down()

Revert a migration step.

public abstract down() : mixed
Return values
mixed

getDBGroup()

Returns the database group name this migration uses.

public getDBGroup() : string
Return values
string

up()

Perform a migration step.

public abstract up() : mixed
Return values
mixed

Search results