<?php
declare(strict_types=1);
namespace CoreMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240419151416 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 planning_bundle__slot DROP FOREIGN KEY FK_78892747410BF7D1');
$this->addSql('DROP INDEX IDX_78892747410BF7D1 ON planning_bundle__slot');
$this->addSql('ALTER TABLE planning_bundle__slot DROP task_time_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE planning_bundle__slot ADD task_time_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE planning_bundle__slot ADD CONSTRAINT FK_78892747410BF7D1 FOREIGN KEY (task_time_id) REFERENCES projects_bundle__task_time (id)');
$this->addSql('CREATE INDEX IDX_78892747410BF7D1 ON planning_bundle__slot (task_time_id)');
}
}