abstract class Migration
Migration factory.
Implements some handy shortcuts for creating typical migrations.
Methods
Details
at
line 24
static array
createTable(string $name, callable $definition)
at
line 38
static array
createTableIfNotExists(string $name, callable $definition)
at
line 54
static array
renameTable(string $from, string $to)
at
line 66
static array
addColumns(string $tableName, array $columnDefinitions)
at
line 85
static array
dropColumns(string $tableName, array $columnDefinitions)
at
line 95
static array
renameColumn(string $tableName, string $from, string $to)
at
line 100
static array
renameColumns(string $tableName, array $columnNames)
at
line 126
static array
addSettings(array $defaults)
<p>Add default values for config values.</p>
<p>You generally should use the Settings extender's <code>default</code> method instead to register settings.</p>