<?php
declare(strict_types=1);
namespace SuppliersBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230210105137 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE suppliers_bundle__supplier_contact ADD is_default TINYINT(1) NOT NULL');
$this->addSql('CREATE INDEX is_default ON suppliers_bundle__supplier_contact (is_default)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX is_default ON suppliers_bundle__supplier_contact');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_contact DROP is_default');
}
}