<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20230515081118 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 oim_case_tasks CHANGE status status VARCHAR(20) NOT NULL COMMENT \'status of current task\'');
$this->addSql('ALTER TABLE oim_measures CHANGE status status VARCHAR(20) NOT NULL COMMENT \'status of current measure\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
// TODO: there should be a mapping from string to int
$this->addSql('UPDATE oim_case_tasks SET status = -1 WHERE true');
$this->addSql('ALTER TABLE oim_case_tasks CHANGE status status INT NOT NULL COMMENT \'status of current task\'');
// TODO: there should be a mapping from string to int
$this->addSql('UPDATE oim_measures SET status = -1 WHERE true');
$this->addSql('ALTER TABLE oim_measures CHANGE status status INT NOT NULL COMMENT \'status of current measure\'');
}
}