title: Check for table existance before running sql with Symfony sfPropelMigrationsLightPlugin
body: <p>I want to check for the existence of a table before running a create SQL statement in the up() method of a migrate.</p>
  
  <p>I can run something like:</p>
  
  <pre><code>$count = $this-&gt;executeSQL("SELECT count(*) FROM information_schema.TABLES where TABLE_NAME = 'table_name';");
  
  if($count == 0)
  {
     $this-&gt;executeSQL("Create SQL ...");
  }
  </code></pre>
  
  <p>The problem is that this returns the following error:</p>
  
  <blockquote>
    <p>SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active.  Consider using PDOStatement::fetchAll().  Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.</p>
  </blockquote>
  
  <p>Any ideas how to get around this?</p>