<?php
declare(strict_types=1);
namespace CustomersBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20231116155642 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE customers_bundle__customer ADD contact TINYINT(1) DEFAULT 0 NOT NULL, ADD job VARCHAR(255) DEFAULT NULL');
$this->addSql('CREATE INDEX contact ON customers_bundle__customer (contact)');
$this->addSql('CREATE INDEX job ON customers_bundle__customer (job)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX contact ON customers_bundle__customer');
$this->addSql('DROP INDEX job ON customers_bundle__customer');
$this->addSql('ALTER TABLE customers_bundle__customer DROP contact, DROP job');
}
}