<?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 Version20220629091402 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 stocks_bundle__location CHANGE z z VARCHAR(20) NOT NULL COMMENT \'Stage\'');
$this->addSql('CREATE INDEX x ON stocks_bundle__location (x)');
$this->addSql('CREATE INDEX y ON stocks_bundle__location (y)');
$this->addSql('CREATE INDEX z ON stocks_bundle__location (z)');
$this->addSql('ALTER TABLE stocks_bundle__location RENAME INDEX idx_a4ab83ff5080ecde TO warehouse_id');
$this->addSql('CREATE INDEX product_id ON stocks_bundle__product_configuration (product_id)');
$this->addSql('CREATE INDEX batch_number ON stocks_bundle__stock_location (batch_number)');
$this->addSql('CREATE INDEX quantity ON stocks_bundle__stock_location (quantity)');
$this->addSql('CREATE INDEX quantity_in_order ON stocks_bundle__stock_location (quantity_in_order)');
$this->addSql('CREATE INDEX quantity_simulated ON stocks_bundle__stock_location (quantity_simulated)');
$this->addSql('CREATE INDEX date ON stocks_bundle__stock_location (date)');
$this->addSql('ALTER TABLE stocks_bundle__stock_location RENAME INDEX idx_bba57e06ebcd91f6 TO stock_product_id');
$this->addSql('ALTER TABLE stocks_bundle__stock_location RENAME INDEX idx_bba57e0664d218e TO location_id');
$this->addSql('ALTER TABLE stocks_bundle__stock_location RENAME INDEX idx_bba57e06e3b45410 TO sub_location_id');
$this->addSql('ALTER TABLE stocks_bundle__stock_location RENAME INDEX idx_bba57e06fcab8b6e TO date_type_id');
$this->addSql('CREATE INDEX quantity ON stocks_bundle__stock_movement (quantity)');
$this->addSql('CREATE INDEX sign ON stocks_bundle__stock_movement (sign)');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement RENAME INDEX idx_11e6623ad0e7d5de TO stock_movement_reason_id');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement RENAME INDEX idx_11e6623aa145ecc8 TO stock_quantity_id');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement RENAME INDEX idx_11e6623a64d218e TO location_id');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement RENAME INDEX idx_11e6623ae3b45410 TO sub_location_id');
$this->addSql('CREATE INDEX quantity ON stocks_bundle__stock_order_line (quantity)');
$this->addSql('CREATE INDEX quantity_available ON stocks_bundle__stock_order_line (quantity_available)');
$this->addSql('CREATE INDEX order_line_id ON stocks_bundle__stock_order_line (order_line_id)');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line RENAME INDEX idx_c168a566ebcd91f6 TO stock_product_id');
$this->addSql('CREATE INDEX quantity ON stocks_bundle__stock_order_line_location (quantity)');
$this->addSql('CREATE INDEX quantity_available ON stocks_bundle__stock_order_line_location (quantity_available)');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line_location RENAME INDEX idx_df6712fe3f9ef6ed TO stock_order_line_id');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line_location RENAME INDEX idx_df6712fed98387ba TO stock_location_id');
$this->addSql('CREATE INDEX quantity ON stocks_bundle__stock_product (quantity)');
$this->addSql('CREATE INDEX quantity_in_order ON stocks_bundle__stock_product (quantity_in_order)');
$this->addSql('CREATE INDEX quantity_simulated ON stocks_bundle__stock_product (quantity_simulated)');
$this->addSql('ALTER TABLE stocks_bundle__stock_product RENAME INDEX idx_3d03c4604584665a TO product_id');
$this->addSql('ALTER TABLE stocks_bundle__stock_product RENAME INDEX idx_3d03c4609941a932 TO declination_id');
$this->addSql('ALTER TABLE stocks_bundle__stock_product RENAME INDEX idx_3d03c4605080ecde TO warehouse_id');
$this->addSql('CREATE INDEX quantity ON stocks_bundle__stock_quantity (quantity)');
$this->addSql('CREATE INDEX quantity_entry ON stocks_bundle__stock_quantity (quantity_entry)');
$this->addSql('CREATE INDEX wholesale_price ON stocks_bundle__stock_quantity (wholesale_price)');
$this->addSql('CREATE INDEX currency_change_rate ON stocks_bundle__stock_quantity (currency_change_rate)');
$this->addSql('CREATE INDEX date_entry ON stocks_bundle__stock_quantity (date_entry)');
$this->addSql('ALTER TABLE stocks_bundle__stock_quantity RENAME INDEX idx_7ac8e1fb38248176 TO currency_id');
$this->addSql('CREATE INDEX reference ON stocks_bundle__sub_location (reference)');
$this->addSql('ALTER TABLE stocks_bundle__sub_location RENAME INDEX idx_69b6540664d218e TO location_id');
$this->addSql('CREATE INDEX name ON stocks_bundle__warehouse (name)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP INDEX x ON stocks_bundle__location');
$this->addSql('DROP INDEX y ON stocks_bundle__location');
$this->addSql('DROP INDEX z ON stocks_bundle__location');
$this->addSql('ALTER TABLE stocks_bundle__location CHANGE z z VARCHAR(20) NOT NULL COMMENT \'Height\'');
$this->addSql('ALTER TABLE stocks_bundle__location RENAME INDEX warehouse_id TO IDX_A4AB83FF5080ECDE');
$this->addSql('DROP INDEX product_id ON stocks_bundle__product_configuration');
$this->addSql('DROP INDEX batch_number ON stocks_bundle__stock_location');
$this->addSql('DROP INDEX quantity ON stocks_bundle__stock_location');
$this->addSql('DROP INDEX quantity_in_order ON stocks_bundle__stock_location');
$this->addSql('DROP INDEX quantity_simulated ON stocks_bundle__stock_location');
$this->addSql('DROP INDEX date ON stocks_bundle__stock_location');
$this->addSql('ALTER TABLE stocks_bundle__stock_location RENAME INDEX location_id TO IDX_BBA57E0664D218E');
$this->addSql('ALTER TABLE stocks_bundle__stock_location RENAME INDEX sub_location_id TO IDX_BBA57E06E3B45410');
$this->addSql('ALTER TABLE stocks_bundle__stock_location RENAME INDEX stock_product_id TO IDX_BBA57E06EBCD91F6');
$this->addSql('ALTER TABLE stocks_bundle__stock_location RENAME INDEX date_type_id TO IDX_BBA57E06FCAB8B6E');
$this->addSql('DROP INDEX quantity ON stocks_bundle__stock_movement');
$this->addSql('DROP INDEX sign ON stocks_bundle__stock_movement');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement RENAME INDEX location_id TO IDX_11E6623A64D218E');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement RENAME INDEX stock_quantity_id TO IDX_11E6623AA145ECC8');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement RENAME INDEX stock_movement_reason_id TO IDX_11E6623AD0E7D5DE');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement RENAME INDEX sub_location_id TO IDX_11E6623AE3B45410');
$this->addSql('DROP INDEX quantity ON stocks_bundle__stock_order_line');
$this->addSql('DROP INDEX quantity_available ON stocks_bundle__stock_order_line');
$this->addSql('DROP INDEX order_line_id ON stocks_bundle__stock_order_line');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line RENAME INDEX stock_product_id TO IDX_C168A566EBCD91F6');
$this->addSql('DROP INDEX quantity ON stocks_bundle__stock_order_line_location');
$this->addSql('DROP INDEX quantity_available ON stocks_bundle__stock_order_line_location');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line_location RENAME INDEX stock_order_line_id TO IDX_DF6712FE3F9EF6ED');
$this->addSql('ALTER TABLE stocks_bundle__stock_order_line_location RENAME INDEX stock_location_id TO IDX_DF6712FED98387BA');
$this->addSql('DROP INDEX quantity ON stocks_bundle__stock_product');
$this->addSql('DROP INDEX quantity_in_order ON stocks_bundle__stock_product');
$this->addSql('DROP INDEX quantity_simulated ON stocks_bundle__stock_product');
$this->addSql('ALTER TABLE stocks_bundle__stock_product RENAME INDEX product_id TO IDX_3D03C4604584665A');
$this->addSql('ALTER TABLE stocks_bundle__stock_product RENAME INDEX warehouse_id TO IDX_3D03C4605080ECDE');
$this->addSql('ALTER TABLE stocks_bundle__stock_product RENAME INDEX declination_id TO IDX_3D03C4609941A932');
$this->addSql('DROP INDEX quantity ON stocks_bundle__stock_quantity');
$this->addSql('DROP INDEX quantity_entry ON stocks_bundle__stock_quantity');
$this->addSql('DROP INDEX wholesale_price ON stocks_bundle__stock_quantity');
$this->addSql('DROP INDEX currency_change_rate ON stocks_bundle__stock_quantity');
$this->addSql('DROP INDEX date_entry ON stocks_bundle__stock_quantity');
$this->addSql('ALTER TABLE stocks_bundle__stock_quantity RENAME INDEX currency_id TO IDX_7AC8E1FB38248176');
$this->addSql('DROP INDEX reference ON stocks_bundle__sub_location');
$this->addSql('ALTER TABLE stocks_bundle__sub_location RENAME INDEX location_id TO IDX_69B6540664D218E');
$this->addSql('DROP INDEX name ON stocks_bundle__warehouse');
}
}