Index
Removes an index from a table.
Command
$ eucalypt migration drop index
# Alias/shortened
$ eucalypt m drop index
$ eucalypt m drop i
$ eucalypt m d iArguments
[TABLE]- The name of the table.*[COLUMNS]- The columns of the table that the index should be removed from.
Options/flags
--namealias-nThe name of the index to remove (if this flag is active, the
*[COLUMNS]argument should be empty).
Examples
$ eucalypt m drop index games openingRemoves the index on the
openingcolumn of thegamestable.$ eucalypt m drop index games white_elo black_eloRemoves the joint index on the
white_eloandblack_elocolumns of thegamestable.$ eucalypt m drop index games -n index_games_on_openingRemoves the
index_games_on_openingindex on thegamestable.
Last updated