def drop(self, force=False): Table.drop(self, force) # Try to also drop the corresponding view if one exists. sql = self.DROP_VIEW.format(table=self.table_name) try: self.connection.execute(sql) except IntegrityError: self.log_error("Unable to drop view")
def dropTable(**kwargs): Table.drop(kwargs['table'])