<?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 Version20210622123518 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 record ADD compta_status VARCHAR(50) DEFAULT NULL');
$this->addSql('ALTER TABLE resource ADD compta_status VARCHAR(50) DEFAULT NULL');
$this->addSql('UPDATE record SET compta_status = "none"');
$this->addSql('UPDATE resource SET compta_status = "none"');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE record DROP compta_status');
$this->addSql('ALTER TABLE resource DROP compta_status');
}
}