Fix sql.spec.ts
This commit is contained in:
parent
c30cc06d47
commit
83c7f08c5a
|
@ -225,7 +225,7 @@ class SqlTableQueryBuilder {
|
|||
? `\`${schemaName}\`.\`${json.table.name}\``
|
||||
: `\`${json.table.name}\``
|
||||
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: [],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -722,7 +722,7 @@ describe("SQL query builder", () => {
|
|||
})
|
||||
expect(query).toEqual({
|
||||
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