title: Redo all the migrations on symfony
body: <p>After I had a bug in php my admin I deleted all the tables from it to solve it.</p>
  <p>Now I want to rebuild my database using doctrine migrations (but not the very last migration as it is the one which caused the bug).</p>
  <p>How can I make a migration at an previous state?</p>
  <p>Edit : by doing the migrate command it recreates my table however everytime I try a new</p>
  <pre><code>php bin/console doctrine:migrations:migrate
  </code></pre>
  <p>I get the following error messages :</p>
  <blockquote>
  <p>[notice] Migrating up to DoctrineMigrations\Version20201124181841
  [error] Migration DoctrineMigrations\Version20201124174448 failed
  during Execution. Error: &quot;An exception occurred while executing
  'CREATE TABLE publishers (id INT AUTO_INCREMENT NOT NULL, name
  VARCHAR(255) NOT NULL, contact_firstname VARCHAR(255) NOT NULL,
  contact_lastname VARCHAR(255) NOT NULL, contact_email VARCHAR(255) NOT
  NULL, contact_phonecode VARCHAR(255) NOT NULL, contact_phone
  VARCHAR(255) NOT NULL, public_phonecode VARCHAR(255) DEFAULT NULL,
  public_phone VARCHAR(255) DEFAULT NULL, public_email VARCHAR(255)
  DEFAULT NULL, website VARCHAR(255) DEFAULT NULL, logo VARCHAR(255)
  DEFAULT NULL, facebook VARCHAR(255) DEFAULT NULL, twitter VARCHAR(255)
  DEFAULT NULL, instagram VARCHAR(255) DEFAULT NULL, address
  VARCHAR(255) DEFAULT NULL, city VARCHAR(255) DEFAULT NULL, zip
  VARCHAR(255) DEFAULT NULL, country VARCHAR(255) NOT NULL,
  company_number VARCHAR(255) NOT NULL, registration_date DATETIME NOT
  NULL, modification_date DATETIME DEFAULT NULL, description LONGTEXT
  DEFAULT NULL, tagline VARCHAR(255) DEFAULT NULL, slug VARCHAR(255) NOT
  NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE
  <code>utf8mb4_unicode_ci</code> ENGINE = InnoDB':</p>
  <p>SQLSTATE[42S01]: Base table or view already exists: 1050 Table
  'publishers' already exists&quot;</p>
  <p>In AbstractMySQLDriver.php line 57:</p>
  <p>An exception occurred while executing 'CREATE TABLE publishers (id
  INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) N   OT NULL,
  contact_firstname VARCHAR(255) NOT NULL, contact_lastname VARCHAR(255)
  NOT NULL, contact_email VARCHAR(255   ) NOT NULL, contact_phonecode
  VARCHAR(255) NOT NULL, contact_phone VARCHAR(255) NOT NULL,
  public_phonecode VARCHAR(   255) DEFAULT NULL, public_phone
  VARCHAR(255) DEFAULT NULL, public_email VARCHAR(255) DEFAULT NULL,
  website VARCHAR(   255) DEFAULT NULL, logo VARCHAR(255) DEFAULT NULL,
  facebook VARCHAR(255) DEFAULT NULL, twitter VARCHAR(255) DEFAULT<br />
  NULL, instagram VARCHAR(255) DEFAULT NULL, address VARCHAR(255)
  DEFAULT NULL, city VARCHAR(255) DEFAULT NULL, zip   VARCHAR(255)
  DEFAULT NULL, country VARCHAR(255) NOT NULL, company_number
  VARCHAR(255) NOT NULL, registration_date D   ATETIME NOT NULL,
  modification_date DATETIME DEFAULT NULL, description LONGTEXT DEFAULT
  NULL, tagline VARCHAR(255)   DEFAULT NULL, slug VARCHAR(255) NOT NULL,
  PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE
  <code>utf8mb4_unicode_c   i</code> ENGINE = InnoDB':</p>
  <p>SQLSTATE[42S01]: Base table or view already exists: 1050 Table
  'publishers' already exists</p>
  <p>In Exception.php line 18:</p>
  <p>SQLSTATE[42S01]: Base table or view already exists: 1050 Table
  'publishers' already exists</p>
  <p>In PDOConnection.php line 52:</p>
  <p>SQLSTATE[42S01]: Base table or view already exists: 1050 Table
  'publishers' already exists</p>
  <p>doctrine:migrations:migrate [--write-sql [WRITE-SQL]] [--dry-run]
  [--query-time] [--allow-no-migration] [--all-or-nothing
  [ALL-OR-NOTHING]] [--configuration CONFIGURATION] [--db-configuration
  DB-CONFIGURATION] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose]
  [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env
  ENV] [--no-debug] [--]  []</p>
  </blockquote>
  <p>How can I fix this?</p>