<?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 Version20220504142409 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 payin ALTER cart_id DROP NOT NULL');
$this->addSql('ALTER TABLE payin ALTER iban_bic DROP NOT NULL');
$this->addSql('ALTER TABLE payin ALTER iban_tx_end_to_end_id DROP NOT NULL');
$this->addSql('ALTER TABLE payin ALTER iban_tx_id DROP NOT NULL');
$this->addSql('ALTER TABLE beneficiaries ADD is_active BOOLEAN NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE payin ALTER cart_id SET NOT NULL');
$this->addSql('ALTER TABLE payin ALTER iban_bic SET NOT NULL');
$this->addSql('ALTER TABLE payin ALTER iban_tx_end_to_end_id SET NOT NULL');
$this->addSql('ALTER TABLE payin ALTER iban_tx_id SET NOT NULL');
$this->addSql('ALTER TABLE beneficiaries DROP is_active');
}
}