abstract class Migration
Migration factory.
Implements some handy shortcuts for creating typical migrations.
Methods
static
createTableIfNotExists($name, callable $definition)
<p>Create a table if it doesn't already exist.</p>
Details
at
line 27
static
createTable($name, callable $definition)
<p>Create a table.</p>
at
line 44
static
createTableIfNotExists($name, callable $definition)
<p>Create a table if it doesn't already exist.</p>
at
line 63
static
renameTable($from, $to)
<p>Rename a table.</p>
at
line 78
static
addColumns($tableName, array $columnDefinitions)
<p>Add columns to a table.</p>
at
line 100
static
dropColumns($tableName, array $columnDefinitions)
<p>Drop columns from a table.</p>
at
line 113
static
renameColumn($tableName, $from, $to)
<p>Rename a column.</p>
at
line 121
static
renameColumns($tableName, array $columnNames)
<p>Rename multiple columns.</p>
at
line 147
static
addSettings(array $defaults)
deprecated
deprecated
<p>Add default values for config values.</p>
at
line 174
static
addPermissions(array $permissions)
<p>Add default permissions.</p>