Fix DB manager PG rename table

Fixes #32808
This commit is contained in:
Alessandro Pasotti 2019-11-14 13:42:30 +01:00
parent 461d2edac3
commit 7f6b3cf877

View File

@ -746,7 +746,7 @@ class PostGisDBConnector(DBConnector):
sql = u"TRUNCATE %s" % self.quoteId(table)
self._execute_and_commit(sql)
def renamesTable(self, table, new_table):
def renameTable(self, table, new_table):
"""Renames a table in database """
schema, tablename = self.getSchemaTableName(table)
if new_table == tablename: