<?php
declare(strict_types=1);
namespace Application\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20231127135136 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 legal_entity_order_invoice_remark ADD payment_import_remark TINYINT(1) NOT NULL');
$this->addSql('UPDATE legal_entity_order_invoice_remark SET payment_import_remark = 1 WHERE contents LIKE ?', [
'%Received payment information from the accounting system%',
]);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE legal_entity_order_invoice_remark DROP payment_import_remark');
}
}