def _db_upgrade(self, db_name):
current_db_version = self._get_db_version()<EOL>self._execute(db_schema.functions)<EOL>for i in range(current_db_version, nipap.__db_version__):<EOL><INDENT>self._logger.info("<STR_LIT>", i, "<STR_LIT:to>", i+<NUM_LIT:1>)<EOL>upgrade_sql = db_schema.upgrade[i-<NUM_LIT:1>] <EOL>self._execute(upgrade_sql % (db_name))<EOL><DEDENT>self._execute(db_schema.triggers)<EOL>
Upgrade nipap database schema