Column
Changes a column's type definition.
Command
Arguments
[TABLE]
- The name of the table.[COLUMN]
- The name of the column.[TYPE]
- The new type for the column.
Options/flags
--options
alias-o
(Possible values: [limit, default, null, precision, scale])Additional options for the column.
Examples
$ eucalypt m change column users email string
Change the
email
column on theusers
table to astring
type.$ eucalypt m chance column users email string -o null:false
Change the
email
column on theusers
table to astring
type, and make it non-null.
Last updated