<?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 Version20260401093431 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 account_notifications ADD app_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE account_notifications ADD CONSTRAINT FK_FF268C607987212D FOREIGN KEY (app_id) REFERENCES app (id) ON DELETE CASCADE');
$this->addSql('CREATE INDEX IDX_FF268C607987212D ON account_notifications (app_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE account_notifications DROP FOREIGN KEY FK_FF268C607987212D');
$this->addSql('DROP INDEX IDX_FF268C607987212D ON account_notifications');
$this->addSql('ALTER TABLE account_notifications DROP app_id');
}
}