eucalypt
Search…
Column
Changes a column's type definition.

Command

1
$ eucalypt migration change column
2
# Alias/shortened
3
$ eucalypt m change column
4
$ eucalypt m change c
Copied!

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 the users table to a string type.
    $ eucalypt m chance column users email string -o null:false
    Change the email column on the users table to a string type, and make it non-null.
Last modified 3yr ago