rename method
Implementation
@override
void rename(String newName) {
// Throws for a new name of another schema, which RENAME TO cannot move
// the table to, before the clause is added.
var renamed = sql.renamedPostgresTable(_currentName, newName);
// RENAME TO takes the table's own name, without its schema.
_statement(
_Statement(
'RENAME TO '
'${sql.quotePostgresPart(sql.unqualifiedPostgresName(newName))}',
newTableName: renamed,
),
);
_currentName = renamed;
}