<?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 Version20240430120453 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` ADD status_geen_door_id INT DEFAULT NULL, ADD status_geen_datum DATE DEFAULT NULL');
$this->addSql('ALTER TABLE `order` ADD CONSTRAINT FK_F5299398264454D5 FOREIGN KEY (status_geen_door_id) REFERENCES `user` (id)');
$this->addSql('CREATE INDEX IDX_F5299398264454D5 ON `order` (status_geen_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` DROP FOREIGN KEY FK_F5299398264454D5');
$this->addSql('DROP INDEX IDX_F5299398264454D5 ON `order`');
$this->addSql('ALTER TABLE `order` DROP status_geen_door_id, DROP status_geen_datum');
}
}