This is what I get when I do the symfony doctrine:migrate :
- SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'a_slot' already exists. Failing Query: "CREATE TABLE a_slot (id INT AUTO_INCREMENT, type VARCHAR(100), variant VARCHAR(100), value LONGTEXT, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE
utf8_general_ci ENGINE = INNODB"
- SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'page_id'. Failing Query: "ALTER TABLE a_slot ADD page_id INT"
- SQLSTATE[HY000]: General error: 1005 Can't create table 'asandbox.#sql-4e4_1' (errno: 121). Failing Query: "ALTER TABLE a_slot ADD CONSTRAINT a_slot_page_id_a_page_id FOREIGN KEY (page_id) REFERENCES a_page(id) ON DELETE CASCADE"
- SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'a_slot_page_id_idx'. Failing Query: "CREATE INDEX
a_slot_page_id_idx ON a_slot (page_id)"
- SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'yd_text_content' already exists. Failing Query: "CREATE TABLE
yd_text_content (id BIGINT AUTO_INCREMENT, text LONGTEXT, title VARCHAR(255), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE = INNODB"
- SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'yd_article' already exists. Failing Query: "CREATE TABLE yd_article (id BIGINT AUTO_INCREMENT, title VARCHAR(255) NOT NULL, text LONGTEXT, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE = INNODB"
I don't know where the .sql file is generated.
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!