CodeIgniter v4.5 API

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

$DBGroup

The name of the database group to use.

protected string|null $DBGroup

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|null

up()

Perform a migration step.

public abstract up() : mixed

        
On this page

Search results