def upgrade(self, version, name='database_version', pkg=None):
        dbver = self.get_database_version(name)
        for i in range(dbver + 1, version + 1):
            module = 'db%i' % i
            try:
                upgrades = __import__(pkg, globals(), locals(), [module])
            except ImportError:
                raise TracError(_("No upgrade package %(pkg)s", pkg=pkg))
            try:
                script = getattr(upgrades, module)
            except AttributeError:
                raise TracError(_("No upgrade module %(module)s.py",
                                  module=module))
            with self.env.db_transaction as db:
                cursor = db.cursor()
                script.do_upgrade(self.env, i, cursor)
                self.set_database_version(i, name)
Set or remove the completer instance. If an instance of ReadlineCompleter is specified, 
dataset/ETHPy150Open edgewall/trac/trac/db/api.py/DatabaseManager.upgrade--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/readline.py/set_completer