<?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 Version20220804141403 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('DROP INDEX reference ON shipments_bundle__carrier');
$this->addSql('ALTER TABLE shipments_bundle__carrier DROP reference');
$this->addSql('ALTER TABLE stocks_bundle__stock_location ADD note LONGTEXT DEFAULT NULL');
$this->addSql('CREATE INDEX reference ON suppliers_bundle__product_supplier (reference)');
$this->addSql('CREATE INDEX wholesale_price ON suppliers_bundle__product_supplier (wholesale_price)');
$this->addSql('ALTER TABLE unit_measure ADD show_details_on_pdf TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('CREATE INDEX show_details_on_pdf ON unit_measure (show_details_on_pdf)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE shipments_bundle__carrier ADD reference VARCHAR(128) DEFAULT NULL');
$this->addSql('CREATE INDEX reference ON shipments_bundle__carrier (reference)');
$this->addSql('ALTER TABLE stocks_bundle__stock_location DROP note');
$this->addSql('DROP INDEX reference ON suppliers_bundle__product_supplier');
$this->addSql('DROP INDEX wholesale_price ON suppliers_bundle__product_supplier');
$this->addSql('DROP INDEX show_details_on_pdf ON unit_measure');
$this->addSql('ALTER TABLE unit_measure DROP show_details_on_pdf');
}
}