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:
wubzz 2016-05-14 22:57:48 +02:00
commit c511b8c582

View File

@ -59,7 +59,7 @@ SchemaCompiler_PG.prototype.qualifiedTableName = function(tableName) {
// Compile a rename table command.
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) {