abstract class Migration
Migration factory.
Implements some handy shortcuts for creating typical migrations.
Methods
Details
at
line 26
static
createTable($name, callable $definition)
<p>Create a table.</p>
at
line 43
static
renameTable($from, $to)
<p>Rename a table.</p>
at
line 58
static
addColumns($tableName, array $columnDefinitions)
<p>Add columns to a table.</p>
at
line 80
static
dropColumns($tableName, array $columnDefinitions)
<p>Drop columns from a table.</p>
at
line 93
static
renameColumn($tableName, $from, $to)
<p>Rename a column.</p>
at
line 101
static
renameColumns($tableName, array $columnNames)
<p>Rename multiple columns.</p>
at
line 124
static
addSettings(array $defaults)
<p>Add default values for config values.</p>
at
line 151
static
addPermissions(array $permissions)
<p>Add default permissions.</p>