title: Doctrine - orm:schema-tool:create - How to ignore tables that already exist?
body: <p>I need to create a few new tables in my database, so I run <code>orm:schema-tool:create</code> and it created the first table, but then tried to create a table that already exists and the script stopped running. Heres the error message it outputs:</p>
  
  <pre><code>  [Doctrine\ORM\Tools\ToolsException]
    Schema-Tool failed with Error 'An exception occurred while executing 'CREATE TABLE autogen_structures (id INT AUTO_
    INCREMENT NOT NULL, structure_id INT DEFAULT NULL, INDEX FK_STRUCTURES_TO_AUTOGEN_STRUC (structure_id), PRIMARY KEY
    (id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB':
    SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'autogen_structures' already exists' while executing
     DDL: CREATE TABLE autogen_structures (id INT AUTO_INCREMENT NOT NULL, structure_id INT DEFAULT NULL, INDEX FK_STRU
    CTURES_TO_AUTOGEN_STRUC (structure_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE
    = InnoDB
  
  
  
    [Doctrine\DBAL\Exception\TableExistsException]
    An exception occurred while executing 'CREATE TABLE autogen_structures (id INT AUTO_INCREMENT NOT NULL, structure_i
    d INT DEFAULT NULL, INDEX FK_STRUCTURES_TO_AUTOGEN_STRUC (structure_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf
    8 COLLATE utf8_unicode_ci ENGINE = InnoDB':
    SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'autogen_structures' already exists
  
  
  
    [Doctrine\DBAL\Driver\PDOException]
    SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'autogen_structures' already exists
  </code></pre>
  
  <p>I'm actually pretty relieved that it didn't wipe out the data of all of the existing tables, I have experienced this problem before, so I'm assuming it was <code>orm:schema-tool:update</code> that caused that problem. On a database with thousands of rows in the table, thats a pretty huge problem because it takes so long to recreate the database from backup files. </p>
  
  <p>Is there a way to create new tables, and ignore existing tables. And also is there a way to update the schema of existing tables without emptying the data in them? </p>