<?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 Version20260107172253 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 mybiz_kanban_cards DROP FOREIGN KEY FK_67A76DEABE8E8ED5');
$this->addSql('DROP INDEX IDX_67A76DEABE8E8ED5 ON mybiz_kanban_cards');
$this->addSql('ALTER TABLE mybiz_kanban_cards CHANGE column_id kanban_column_id INT NOT NULL');
$this->addSql('ALTER TABLE mybiz_kanban_cards ADD CONSTRAINT FK_67A76DEAFCC01C3F FOREIGN KEY (kanban_column_id) REFERENCES mybiz_kanban_columns (id)');
$this->addSql('CREATE INDEX IDX_67A76DEAFCC01C3F ON mybiz_kanban_cards (kanban_column_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE mybiz_kanban_cards DROP FOREIGN KEY FK_67A76DEAFCC01C3F');
$this->addSql('DROP INDEX IDX_67A76DEAFCC01C3F ON mybiz_kanban_cards');
$this->addSql('ALTER TABLE mybiz_kanban_cards CHANGE kanban_column_id column_id INT NOT NULL');
$this->addSql('ALTER TABLE mybiz_kanban_cards ADD CONSTRAINT FK_67A76DEABE8E8ED5 FOREIGN KEY (column_id) REFERENCES mybiz_kanban_columns (id)');
$this->addSql('CREATE INDEX IDX_67A76DEABE8E8ED5 ON mybiz_kanban_cards (column_id)');
}
}