Column
Adds a column to a table.
Command
$ eucalypt migration add column
# Alias/shortened
$ eucalypt m add column
$ eucalypt m add c
$ eucalypt m a cArguments
[TABLE]- The name of the table.[COLUMN]- The name of the column.[TYPE]- The column type.
Options/flags
--optionsalias-o(Possible values: [limit, default, null, precision, scale])Additional options for the column.
Examples
$ eucalypt m add column games eco integerAdds an
ecocolumn to thegamestable, with typeinteger(with default options).$ eucalypt m add column games eco integer -o null:falseAdds a non-null
ecocolumn to thegamestable, with typeinteger(with default options).
Last updated