<?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 Version20231023074532 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 gift_membership ADD devise_id INT DEFAULT NULL, ADD recipient_first_name VARCHAR(255) DEFAULT NULL, ADD creation_date DATE DEFAULT NULL');
$this->addSql('ALTER TABLE gift_membership ADD CONSTRAINT FK_2B0E156EF4445056 FOREIGN KEY (devise_id) REFERENCES devise (id)');
$this->addSql('CREATE INDEX IDX_2B0E156EF4445056 ON gift_membership (devise_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE gift_membership DROP FOREIGN KEY FK_2B0E156EF4445056');
$this->addSql('DROP INDEX IDX_2B0E156EF4445056 ON gift_membership');
$this->addSql('ALTER TABLE gift_membership DROP devise_id, DROP recipient_first_name, DROP creation_date');
}
}