Skip to content

Commit

Permalink
Added command support for index to wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhgrg authored and kirrg001 committed Oct 2, 2018
1 parent 1db3aef commit 96488af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/server/data/schema/commands.js
Expand Up @@ -43,6 +43,9 @@ function addTableColumn(tableName, table, columnName) {
if (columnSpec.hasOwnProperty('defaultTo')) {
column.defaultTo(columnSpec.defaultTo);
}
if (columnSpec.hasOwnProperty('index') && columnSpec.index === true) {
column.index();
}
}

function addColumn(tableName, column, transaction) {
Expand Down

0 comments on commit 96488af

Please sign in to comment.