<?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 Version20260109171405 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 customer_transaction ADD ad_serve_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE customer_transaction ADD CONSTRAINT FK_717C2ED9D1EB853E FOREIGN KEY (ad_serve_id) REFERENCES user (id) ON DELETE SET NULL');
$this->addSql('CREATE INDEX IDX_717C2ED9D1EB853E ON customer_transaction (ad_serve_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE customer_transaction DROP FOREIGN KEY FK_717C2ED9D1EB853E');
$this->addSql('DROP INDEX IDX_717C2ED9D1EB853E ON customer_transaction');
$this->addSql('ALTER TABLE customer_transaction DROP ad_serve_id');
}
}