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