<?php
declare(strict_types=1);
namespace Application\Migrations;
use App\Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20230412094039 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
/***
* legal entity 1202
*
substance id: 6677
orderline id = 6677
order id = 2061
invoice id = 15823
The invoice + payment date would also need to be transferred
And generate a Licence Agreement for this substance (I will delete the schedule 4 myself once this is done)
destination: 1611
*/
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('UPDATE legal_entity_order SET `legal_entity_id` = 1611 WHERE `id` = 2061');
$this->addSql('UPDATE substance_definition SET `legal_entity_id` = 1611 WHERE `id` = 6677');
$this->addSql('UPDATE legal_entity_order_line SET `legal_entity_id` = 1611 WHERE `id` = 6677');
$this->addSql('UPDATE legal_entity_order_invoice SET `legal_entity_id` = 1611 WHERE `id` = 15823');
$this->addCommand(['app:manual:agreements:generate', '-l', '1611']);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}