migrations/Version20220311084212.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Application\Migrations;
  4. use App\Doctrine\Migrations\AbstractMigration;
  5. use App\Entity\LegalEntity\Contract\Amendment;
  6. use Doctrine\DBAL\Schema\Schema;
  7. /**
  8.  * Auto-generated Migration: Please modify to your needs!
  9.  */
  10. final class Version20220311084212 extends AbstractMigration
  11. {
  12.     public function up(Schema $schema): void
  13.     {
  14.         // this up() migration is auto-generated, please modify it to your needs
  15.         $this->addSql('UPDATE legal_entity_order_line SET status = "waiting-for-payment" WHERE id IN (6475, 6476)');
  16.         $this->addSql('DELETE FROM legal_entity_contract_custom_template WHERE contract_id = 33046');
  17.         $this->addCommand(['app:manual:agreements:generate''-l''1452']);
  18.         $this->addSql('DELETE FROM legal_entity_contract_custom_template WHERE contract_id = 33042');
  19.         $this->addCommand(['app:manual:amendments:generate'Amendment::TYPE_TONNAGEBAND'33042']);
  20.     }
  21.     public function down(Schema $schema): void
  22.     {
  23.         // this down() migration is auto-generated, please modify it to your needs
  24.     }
  25. }