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:
parent
1db3aefb9b
commit
96488af21d
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,9 @@ function addTableColumn(tableName, table, columnName) {
|
||||||
if (columnSpec.hasOwnProperty('defaultTo')) {
|
if (columnSpec.hasOwnProperty('defaultTo')) {
|
||||||
column.defaultTo(columnSpec.defaultTo);
|
column.defaultTo(columnSpec.defaultTo);
|
||||||
}
|
}
|
||||||
|
if (columnSpec.hasOwnProperty('index') && columnSpec.index === true) {
|
||||||
|
column.index();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function addColumn(tableName, column, transaction) {
|
function addColumn(tableName, column, transaction) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue