<?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 Version20220727072020 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 language CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE product_returns_bundle__return_state CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE products_bundle__declination ADD is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('CREATE INDEX is_active ON products_bundle__declination (is_active)');
$this->addSql('ALTER TABLE products_bundle__eco_part CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE products_bundle__eco_part_group CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE products_bundle__product ADD customs_code VARCHAR(10) DEFAULT NULL, CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE products_bundle__product_type CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__additional_pdf CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__bank CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__line_type CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__order_state CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__payment_method CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__payment_term CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE shipments_bundle__burst CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE stocks_bundle__location ADD width INT NOT NULL, ADD is_default_for_empty_sub_location TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE stocks_bundle__sub_location ADD width INT NOT NULL');
$this->addSql('ALTER TABLE suppliers_bundle__supplier CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_type CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line ADD price NUMERIC(20, 6) DEFAULT NULL');
$this->addSql('ALTER TABLE tax_rule CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE unit_measure CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE user CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('ALTER TABLE webservice_key CHANGE is_active is_active TINYINT(1) DEFAULT 1 NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE language CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE product_returns_bundle__return_state CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('DROP INDEX is_active ON products_bundle__declination');
$this->addSql('ALTER TABLE products_bundle__declination DROP is_active');
$this->addSql('ALTER TABLE products_bundle__eco_part CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE products_bundle__eco_part_group CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE products_bundle__product DROP customs_code, CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE products_bundle__product_type CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__additional_pdf CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__bank CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__line_type CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__order_state CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__payment_method CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__payment_term CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE shipments_bundle__burst CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE stocks_bundle__location DROP width, DROP is_default_for_empty_sub_location');
$this->addSql('ALTER TABLE stocks_bundle__sub_location DROP width');
$this->addSql('ALTER TABLE suppliers_bundle__supplier CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE suppliers_bundle__supplier_type CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line DROP price');
$this->addSql('ALTER TABLE tax_rule CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE unit_measure CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE user CHANGE is_active is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE webservice_key CHANGE is_active is_active TINYINT(1) NOT NULL');
}
}