<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20221129085433 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add columns in customer';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE customer ADD birth_date DATE NULL');
$this->addSql('ALTER TABLE customer ADD has_active_card TINYINT(1) NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE object_customer DROP birth_date');
$this->addSql('ALTER TABLE object_customer DROP has_active_card');
}
}