Column
Changes a column's type definition.
Command
$ eucalypt migration change column
# Alias/shortened
$ eucalypt m change column
$ eucalypt m change cArguments
[TABLE]- The name of the table.[COLUMN]- The name of the column.[TYPE]- The new type for the column.
Options/flags
--optionsalias-o(Possible values: [limit, default, null, precision, scale])Additional options for the column.
Examples
$ eucalypt m change column users email stringChange the
emailcolumn on theuserstable to astringtype.$ eucalypt m chance column users email string -o null:falseChange the
emailcolumn on theuserstable to astringtype, and make it non-null.
Last updated