code: def _get_queries(self, migration, method):
          
          connection = migration.get_connection()
          db = connection
  
          with db.pretend():
              getattr(migration, method)()
  
          return db.get_logged_queries()
docs: Get all of the queries that would be run for a migration.
  
          :param migration: The migration
          :type migration: orator.migrations.migration.Migration
  
          :param method: The method to execute
          :type method: str
  
          :rtype: list