<?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 Version20230921092537 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 substance_category ADD reinvoicing_year INT NOT NULL, ADD reinvoicing_in_progress TINYINT(1) NOT NULL');
$this->addSql('UPDATE substance_category SET reinvoicing_year = 2022 WHERE 1');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE substance_category DROP reinvoicing_year, DROP reinvoicing_in_progress');
}
}