Validates and renames a table in schema.
Source
void renameTable(String currentTableName, String newName) { var table = schema.tableForName(currentTableName); if (table == null) { throw new SchemaException("Table $currentTableName does not exist."); } schema.renameTable(table, newName); if (store != null) { commands.addAll(store.renameTable(table, newName)); } }