2
我想修改doctrine:migrations:diff命令,因爲當我運行它時,生成的代碼是壞的,所以我想編輯配置文件,但我不知道它在哪裏。我該如何修改doctrine:migrations:diff?
例不良代碼:
public function up(Schema $schema)
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('DROP TABLE sessions');
//More sql
}
和更大量的SQL語句,這是不修改,而出現的。
謝謝你的人! @Picoss – Sermanes