for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AppBundle\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20170923220650 extends AbstractMigration
{
* @param Schema $schema
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('CREATE INDEX IDX_B979A09BDA439252 ON documentation_folder (lft)');
$this->addSql('CREATE INDEX IDX_B979A09B57A63E24 ON documentation_folder (rght)');
}
public function down(Schema $schema)
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP INDEX IDX_B979A09BDA439252 ON documentation_folder');
$this->addSql('DROP INDEX IDX_B979A09B57A63E24 ON documentation_folder');