AbstractMigration
extends AbstractMigrator
in package
implements
MigrationInterface
AbstractYes
Db SQL migration abstract class
Tags
Table of Contents
Interfaces
- MigrationInterface
- Db SQL migration interface
Properties
- $db : AbstractAdapter|null
- Database adapter
Methods
- __construct() : mixed
- Constructor
- db() : AbstractAdapter
- Get the DB adapter (alias method)
- down() : void
- Execute a DOWN migration (rollback previous changes)
- getDb() : AbstractAdapter
- Get the DB adapter
- up() : void
- Execute an UP migration (new forward changes)
Properties
$db
Database adapter
protected
AbstractAdapter|null
$db
= null
Methods
__construct()
Constructor
public
__construct(AbstractAdapter $db) : mixed
Instantiate the migration object
Parameters
- $db : AbstractAdapter
db()
Get the DB adapter (alias method)
public
db() : AbstractAdapter
Return values
AbstractAdapterdown()
Execute a DOWN migration (rollback previous changes)
public
abstract down() : void
getDb()
Get the DB adapter
public
getDb() : AbstractAdapter
Return values
AbstractAdapterup()
Execute an UP migration (new forward changes)
public
abstract up() : void