mirror of
https://github.com/knex/knex.git
synced 2025-12-13 07:50:50 +00:00
Merge pull request #1408 from wubzz/bugfix/postgres_renametable_withSchema
Don't include schemaName in the new tablename, only on the old tablen…
This commit is contained in:
commit
c511b8c582
@ -59,7 +59,7 @@ SchemaCompiler_PG.prototype.qualifiedTableName = function(tableName) {
|
|||||||
|
|
||||||
// Compile a rename table command.
|
// Compile a rename table command.
|
||||||
SchemaCompiler_PG.prototype.renameTable = function(from, to) {
|
SchemaCompiler_PG.prototype.renameTable = function(from, to) {
|
||||||
this.pushQuery('alter table ' + this.qualifiedTableName(from) + ' rename to ' + this.qualifiedTableName(to));
|
this.pushQuery('alter table ' + this.qualifiedTableName(from) + ' rename to ' + this.formatter.wrap(to));
|
||||||
};
|
};
|
||||||
|
|
||||||
SchemaCompiler_PG.prototype.createSchema = function(schemaName) {
|
SchemaCompiler_PG.prototype.createSchema = function(schemaName) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user