<?php
declare(strict_types=1);
namespace CustomersBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20240313131707 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE customers_bundle__customer ADD birthday DATE DEFAULT NULL');
$this->addSql('CREATE INDEX reference ON customers_bundle__customer (reference)');
$this->addSql('CREATE INDEX birthday ON customers_bundle__customer (birthday)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX reference ON customers_bundle__customer');
$this->addSql('DROP INDEX birthday ON customers_bundle__customer');
$this->addSql('ALTER TABLE customers_bundle__customer DROP birthday');
}
}