def drop_table (self, tablename):
if self.table_exists (tablename):
def drop_table (self, tablename):
if self.table_exists (tablename):
# (.) we've just created the db, so it's either a fresh install, or
# (.) we come from a 'very old' depl.
# in either case, an import is required but there's nothing to clean up
# (.) we've just created the db, so it's either a fresh install, or
# (.) we come from a 'very old' depl.
# in either case, an import is required but there's nothing to clean up
elif self.table_exists ('sfa_db_version'):
# we come from an 'old' version
self.drop_table ('records')
elif self.table_exists ('sfa_db_version'):
# we come from an 'old' version
self.drop_table ('records')
- migrate.drop_version_control (self.url, self.repository)
+ try:
+ migrate.drop_version_control (self.url, self.repository)
+ except migrate.exceptions.DatabaseNotControlledError:
+ logger.log_exc("Failed to drop version control")