0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added command support for index to wrapper

This commit is contained in:
Rish 2018-10-02 22:18:23 +05:30 committed by Katharina Irrgang
parent 1db3aefb9b
commit 96488af21d

View file

@ -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) {