From f078872c5bbe1da6b0d60f7daf693750636535a6 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 4 Sep 2022 11:00:36 +0200 Subject: [PATCH] postgre rename column fixed #350 --- plugins/dbgate-plugin-postgres/src/frontend/Dumper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dbgate-plugin-postgres/src/frontend/Dumper.js b/plugins/dbgate-plugin-postgres/src/frontend/Dumper.js index d08e7146e..d47aa78d2 100644 --- a/plugins/dbgate-plugin-postgres/src/frontend/Dumper.js +++ b/plugins/dbgate-plugin-postgres/src/frontend/Dumper.js @@ -66,7 +66,7 @@ class Dumper extends SqlDumper { this.putCmd('^alter ^table %f ^rename ^column %i ^to %i', oldcol, oldcol.columnName, newcol.columnName); } if (!testEqualTypes(oldcol, newcol)) { - this.putCmd('^alter ^table %f ^alter ^column %i ^type %s', oldcol, oldcol.columnName, newcol.dataType); + this.putCmd('^alter ^table %f ^alter ^column %i ^type %s', oldcol, newcol.columnName, newcol.dataType); } if (oldcol.notNull != newcol.notNull) { if (newcol.notNull) this.putCmd('^alter ^table %f ^alter ^column %i ^set ^not ^null', newcol, newcol.columnName);