Modify field for migration
public changeField ( $table, $oldfield, $newfield, $type, $options = [] ) | ||
$table | string | |
$oldfield | string old name of the field | |
$newfield | string new name of the field | |
$type | string (see fieldFormat) | |
$options | array - default_value new field's default value, if a specific default value needs to be used - comment comment to be added during field creation - nodefault : do not define default value (default false) |