abstract class Migration
Migration factory.
Implements some handy shortcuts for creating typical migrations.
Methods
Details
at
line 27
static
createTable($name, callable $definition)
<p>Create a table.</p>
at
line 44
static
renameTable($from, $to)
<p>Rename a table.</p>
at
line 59
static
addColumns($tableName, array $columnDefinitions)
<p>Add columns to a table.</p>
at
line 81
static
dropColumns($tableName, array $columnDefinitions)
<p>Drop columns from a table.</p>
at
line 94
static
renameColumn($tableName, $from, $to)
<p>Rename a column.</p>
at
line 102
static
renameColumns($tableName, array $columnNames)
<p>Rename multiple columns.</p>
at
line 128
static
addSettings(array $defaults)
deprecated
deprecated
<p>Add default values for config values.</p>
at
line 155
static
addPermissions(array $permissions)
<p>Add default permissions.</p>