diff -r b36a42d260d8 -r 624e5900f5a4 app/DoctrineMigrations/Version20111209060357.php --- a/app/DoctrineMigrations/Version20111209060357.php Fri Dec 09 06:43:49 2011 +0100 +++ b/app/DoctrineMigrations/Version20111209060357.php Wed Dec 14 23:28:58 2011 +0100 @@ -15,17 +15,17 @@ // this up() migration is autogenerated, please modify it to your needs $this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql"); - $this->addSql("ALTER TABLE wikitag_document ADD createdAt DATETIME NULL"); - $this->addSql("ALTER TABLE wikitag_document_tag ADD createdAt DATETIME NULL"); - $this->addSql("ALTER TABLE wikitag_tag ADD createdAt DATETIME NULL"); + $this->addSql("ALTER TABLE wikitag_document ADD created_at DATETIME NULL"); + $this->addSql("ALTER TABLE wikitag_document_tag ADD created_at DATETIME NULL"); + $this->addSql("ALTER TABLE wikitag_tag ADD created_at DATETIME NULL"); - $this->addSql("UPDATE wikitag_document SET createdAt = UTC_TIMESTAMP()"); - $this->addSql("UPDATE wikitag_document_tag SET createdAt = UTC_TIMESTAMP()"); - $this->addSql("UPDATE wikitag_tag SET createdAt = UTC_TIMESTAMP()"); + $this->addSql("UPDATE wikitag_document SET created_at = UTC_TIMESTAMP()"); + $this->addSql("UPDATE wikitag_document_tag SET created_at = UTC_TIMESTAMP()"); + $this->addSql("UPDATE wikitag_tag SET created_at = UTC_TIMESTAMP()"); - $this->addSql("ALTER TABLE wikitag_document MODIFY createdAt DATETIME NOT NULL"); - $this->addSql("ALTER TABLE wikitag_document_tag MODIFY createdAt DATETIME NOT NULL"); - $this->addSql("ALTER TABLE wikitag_tag MODIFY createdAt DATETIME NOT NULL"); + $this->addSql("ALTER TABLE wikitag_document MODIFY created_at DATETIME NOT NULL"); + $this->addSql("ALTER TABLE wikitag_document_tag MODIFY created_at DATETIME NOT NULL"); + $this->addSql("ALTER TABLE wikitag_tag MODIFY created_at DATETIME NOT NULL"); } @@ -34,8 +34,8 @@ // this down() migration is autogenerated, please modify it to your needs $this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql"); - $this->addSql("ALTER TABLE wikitag_document DROP createdAt"); - $this->addSql("ALTER TABLE wikitag_document_tag DROP createdAt"); - $this->addSql("ALTER TABLE wikitag_tag DROP createdAt"); + $this->addSql("ALTER TABLE wikitag_document DROP created_at"); + $this->addSql("ALTER TABLE wikitag_document_tag DROP created_at"); + $this->addSql("ALTER TABLE wikitag_tag DROP created_at"); } }