Fix sql.spec.ts
This commit is contained in:
parent
c30cc06d47
commit
83c7f08c5a
|
@ -225,7 +225,7 @@ class SqlTableQueryBuilder {
|
||||||
? `\`${schemaName}\`.\`${json.table.name}\``
|
? `\`${schemaName}\`.\`${json.table.name}\``
|
||||||
: `\`${json.table.name}\``
|
: `\`${json.table.name}\``
|
||||||
return {
|
return {
|
||||||
sql: `alter table ${tableName} rename column \`${json.meta.renamed.old}\` to \`${updatedColumn}\``,
|
sql: `alter table ${tableName} rename column \`${json.meta.renamed.old}\` to \`${updatedColumn}\`;`,
|
||||||
bindings: [],
|
bindings: [],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -722,7 +722,7 @@ describe("SQL query builder", () => {
|
||||||
})
|
})
|
||||||
expect(query).toEqual({
|
expect(query).toEqual({
|
||||||
bindings: [],
|
bindings: [],
|
||||||
sql: `alter table \`${TABLE_NAME}\` change column \`name\` \`first_name\` varchar(45);`,
|
sql: `alter table \`${TABLE_NAME}\` rename column \`name\` to \`first_name\`;`,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue