Fix db migrations (#212)
This commit is contained in:
parent
eb033a4174
commit
a377777b12
2 changed files with 2 additions and 2 deletions
|
|
@ -120,7 +120,7 @@ function dropColumn (table, column) {
|
|||
|
||||
function renameColumn (table, column, newName) {
|
||||
return ifColumn(table, column,
|
||||
ifColumn(table, column, `
|
||||
ifColumn(table, newName, `
|
||||
ALTER TABLE ${table}
|
||||
RENAME ${column} to ${newName}`, true, true))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue