def _upgrade_database(self):
        self._logger.info('upgrading user database')
        # add readonly column
        try:
            sql = '''ALTER TABLE user ADD COLUMN readonly NOT NULL DEFAULT 0'''
            self._db_curs.execute(sql)
        except:
            pass
        self._db_conn.commit()
Upgrade database to latest version
dataset/ETHPy150Open SpriteLink/NIPAP/nipap/nipap/authlib.py/SqliteAuth._upgrade_database