<?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 Version20250414191222 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 stock_kit_out ADD accounting_student_registration_fee_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE stock_kit_out ADD CONSTRAINT FK_FB176420E82663FB FOREIGN KEY (accounting_student_registration_fee_id) REFERENCES accounting_student_registration_fee (id)');
$this->addSql('CREATE INDEX IDX_FB176420E82663FB ON stock_kit_out (accounting_student_registration_fee_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE stock_kit_out DROP FOREIGN KEY FK_FB176420E82663FB');
$this->addSql('DROP INDEX IDX_FB176420E82663FB ON stock_kit_out');
$this->addSql('ALTER TABLE stock_kit_out DROP accounting_student_registration_fee_id');
}
}