-
Notifications
You must be signed in to change notification settings - Fork 19
apimigrationaddindex
Troy Murray edited this page Sep 19, 2011
·
3 revisions
Add database index on a table column.
addIndex(table,columnNames[,unique,indexName]);
Parameter | Type | Required | Default | Description |
table | string | Yes | name of the table to add the index | |
columnNames | string | Yes | one or more column names to index, comma separated | |
unique | boolean | No | false | if true will create a unique index constraint |
indexName | string | No | table name + underscore + first column name | name to use for index |
addIndex(table='members',columnNames='username',unique=true);