Skip to content

Commit

Permalink
Rename should include schema
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Oct 21, 2024
1 parent 9000d71 commit 978360c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/connections/sql-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ export abstract class SqlConnection extends Connection {
.alterTable(
schemaName ? `${schemaName}.${tableName}` : tableName
)
.renameTable(newTableName)
.renameTable(
schemaName ? `${schemaName}.${newTableName}` : newTableName
)
.toQuery()
);
}
Expand Down

0 comments on commit 978360c

Please sign in to comment.