<?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 Version20240317112448 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 tbl_details_production ADD tbl_production_id INT NOT NULL');
$this->addSql('ALTER TABLE tbl_details_production ADD CONSTRAINT FK_DC294916F5547174 FOREIGN KEY (tbl_production_id) REFERENCES tbl_production (id)');
$this->addSql('CREATE INDEX IDX_DC294916F5547174 ON tbl_details_production (tbl_production_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE tbl_details_production DROP FOREIGN KEY FK_DC294916F5547174');
$this->addSql('DROP INDEX IDX_DC294916F5547174 ON tbl_details_production');
$this->addSql('ALTER TABLE tbl_details_production DROP tbl_production_id');
}
}