code: def exists_table_upgrades(self):
          
  
          query = """
              SELECT EXISTS (
              SELECT 1
              FROM   information_schema.tables
              WHERE  table_schema = '{}'
              AND    table_name = '{}'
              );
          """.format(self.upgrades_table[:self.upgrades_table.index('.')],
                     self.upgrades_table[self.upgrades_table.index('.')+1:])
  
          self.cursor.execute(query)
          return self.cursor.fetchone()[0]
docs: Return if the upgrades table exists
  
          Returns
          -------
          bool
              True if the table exists
              False if the table don't exists