<?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 Version20220817193914 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 accounting_expense ADD checkout_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE accounting_expense ADD CONSTRAINT FK_14B27091146D8724 FOREIGN KEY (checkout_id) REFERENCES treasury_checkout (id)');
$this->addSql('CREATE INDEX IDX_14B27091146D8724 ON accounting_expense (checkout_id)');
$this->addSql('ALTER TABLE treasury_payment ADD is_founder_valedated TINYINT(1) NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE accounting_expense DROP FOREIGN KEY FK_14B27091146D8724');
$this->addSql('DROP INDEX IDX_14B27091146D8724 ON accounting_expense');
$this->addSql('ALTER TABLE accounting_expense DROP checkout_id');
$this->addSql('ALTER TABLE treasury_payment DROP is_founder_valedated');
}
}