<?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 Version20240531103815 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 `order` DROP FOREIGN KEY FK_F5299398F0D3DBDC');
$this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F5299398DC33F749');
$this->addSql('DROP INDEX IDX_F5299398F0D3DBDC ON `order`');
$this->addSql('DROP INDEX IDX_F5299398DC33F749 ON `order`');
$this->addSql('ALTER TABLE `order` DROP offerte_ingevoerd_door_id, DROP order_ingevoerd_door_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE `order` ADD offerte_ingevoerd_door_id INT DEFAULT NULL, ADD order_ingevoerd_door_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE `order` ADD CONSTRAINT FK_F5299398F0D3DBDC FOREIGN KEY (offerte_ingevoerd_door_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE `order` ADD CONSTRAINT FK_F5299398DC33F749 FOREIGN KEY (order_ingevoerd_door_id) REFERENCES user (id)');
$this->addSql('CREATE INDEX IDX_F5299398F0D3DBDC ON `order` (offerte_ingevoerd_door_id)');
$this->addSql('CREATE INDEX IDX_F5299398DC33F749 ON `order` (order_ingevoerd_door_id)');
}
}