<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Entity\Customer;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20211222122647 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add flag filed into table customer and set all flags to 1 (legacy system)';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE customer ADD flag INT DEFAULT 1 NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE customer DROP flag');
}
}