API Documentation (v0.9.0-alpha)

Avolutions\Database\AbstractMigration

implements MigrationInterface

An abstract class which has to be extended by every Migration.

Properties

Property Visibility Type Description
$version public int The version of the migration

Methods

Method Visibility Description
__construct() public Creates a new Migration instance.
table() public Returns a new Table object.

Property Details

$version

The version of the migration

public int $version

Method Details

__construct()

Creates a new Migration instance.

public __construct(Application $Application) : mixed
Parameters

Application $Application
Application instance.

table()

Returns a new Table object.

public table(string $name) : Table
Parameters

string $name
Name of the table.

Return values
Table Returns a new Table object.