for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Application\Migration;
use Doctrine\DBAL\Schema\Schema;
class Version20190123163312 extends AbstractMigration
{
public function up(Schema $schema): void
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE account DROP FOREIGN KEY FK_7D3656A4A76ED395');
$this->addSql('DROP INDEX UNIQ_7D3656A4A76ED395 ON account');
$this->addSql('ALTER TABLE account DROP user_id');
}