<?php
declare(strict_types=1);
namespace CoreMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220617074525 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE sales_bundle__order_state ADD archived TINYINT(1) NOT NULL');
$this->addSql('CREATE INDEX archived ON sales_bundle__order_state (archived)');
$this->addSql('ALTER TABLE sales_bundle__quotation ADD archived TINYINT(1) NOT NULL');
$this->addSql('CREATE INDEX archived ON sales_bundle__quotation (archived)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP INDEX archived ON sales_bundle__order_state');
$this->addSql('ALTER TABLE sales_bundle__order_state DROP archived');
$this->addSql('DROP INDEX archived ON sales_bundle__quotation');
$this->addSql('ALTER TABLE sales_bundle__quotation DROP archived');
}
}