Fix sql.spec.ts

This commit is contained in:
Sam Rose 2024-04-08 11:11:06 +01:00
parent c30cc06d47
commit 83c7f08c5a
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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: [],
}
}

View File

@ -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\`;`,
})
})