def repair_quotas_table(self):
        query = ("CREATE TABLE `quotas` ( `id` varchar(36) NOT NULL, "
                 "`tenant_id` varchar(255) DEFAULT NULL, "
                 "`resource` varchar(255) DEFAULT NULL, "
                 "`limit` int(11) DEFAULT NULL, "
                 "PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;")
        session = db.get_session()
        try:
            session.execute(query)
        except sa_exc.OperationalError:
            # If the table already exists, then this is expected.
            pass