Create a new index - postgres docs
Arguments:
tablename
[Name] - name of the table to altercolumns
[string or array of strings] - columns to add to the indexoptions
[index options] - optional options:name
[string] - name for the index (one will be inferred from table/columns if undefined)unique
[boolean] - set to true if this is a unique indexwhere
[string] - raw sql for where clause of indexconcurrently
[boolean] - create this index concurrentlyopclass
[string] - name of an operator class to usemethod
[string] - btree | hash | gist | spgist | gin
Aliases: addIndex
Reverse Operation: dropIndex
Drop an index - postgres docs
Arguments:
tablename
[Name] - name of the table to altercolumns
[string or array of strings] - column names, used only to infer an index nameoptions
[index options] - optional options:name
[string] - name of the index to drop