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