<?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 Version20221118105657 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 shipments_bundle__order_options ADD prepared_at DATETIME DEFAULT NULL, ADD last_error VARCHAR(256) DEFAULT NULL');
$this->addSql('CREATE INDEX validated_at ON suppliers_orders_bundle__receipt_note (validated_at)');
$this->addSql('CREATE INDEX quantity ON suppliers_orders_bundle__receipt_note_line (quantity)');
$this->addSql('CREATE INDEX quantity_received ON suppliers_orders_bundle__receipt_note_line (quantity_received)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE shipments_bundle__order_options DROP prepared_at, DROP last_error');
$this->addSql('DROP INDEX validated_at ON suppliers_orders_bundle__receipt_note');
$this->addSql('DROP INDEX quantity ON suppliers_orders_bundle__receipt_note_line');
$this->addSql('DROP INDEX quantity_received ON suppliers_orders_bundle__receipt_note_line');
}
}