<?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 Version20240501090921 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_record_maken_door_id INT DEFAULT NULL, ADD status_ontwerp_maken_door_id INT DEFAULT NULL, ADD status_ontwerp_controleren_door_id INT DEFAULT NULL, ADD status_record_controleren_door_id INT DEFAULT NULL, ADD status_record_versturen_door_id INT DEFAULT NULL, ADD status_verstuurd_door_id INT DEFAULT NULL, ADD status_geleverd_door_id INT DEFAULT NULL, ADD status_vervallen_door_id INT DEFAULT NULL, ADD status_record_maken_datum DATE DEFAULT NULL, ADD status_ontwerp_maken_datum DATE DEFAULT NULL, ADD status_ontwerp_controleren_datum DATE DEFAULT NULL, ADD status_record_controleren_datum DATE DEFAULT NULL, ADD status_record_versturen_datum DATE DEFAULT NULL, ADD status_verstuurd_datum DATE DEFAULT NULL, ADD status_geleverd_datum DATE DEFAULT NULL, ADD status_vervallen_datum DATE DEFAULT NULL');
$this->addSql('ALTER TABLE `order` ADD CONSTRAINT FK_F5299398944AF174 FOREIGN KEY (status_record_maken_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `order` ADD CONSTRAINT FK_F5299398CF9B248 FOREIGN KEY (status_ontwerp_maken_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `order` ADD CONSTRAINT FK_F529939881706800 FOREIGN KEY (status_ontwerp_controleren_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `order` ADD CONSTRAINT FK_F5299398115C8573 FOREIGN KEY (status_record_controleren_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `order` ADD CONSTRAINT FK_F52993985D8D6689 FOREIGN KEY (status_record_versturen_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `order` ADD CONSTRAINT FK_F529939823544A26 FOREIGN KEY (status_verstuurd_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `order` ADD CONSTRAINT FK_F52993987147D5FE FOREIGN KEY (status_geleverd_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE `order` ADD CONSTRAINT FK_F52993981A890CAE FOREIGN KEY (status_vervallen_door_id) REFERENCES `user` (id)');
$this->addSql('CREATE INDEX IDX_F5299398944AF174 ON `order` (status_record_maken_door_id)');
$this->addSql('CREATE INDEX IDX_F5299398CF9B248 ON `order` (status_ontwerp_maken_door_id)');
$this->addSql('CREATE INDEX IDX_F529939881706800 ON `order` (status_ontwerp_controleren_door_id)');
$this->addSql('CREATE INDEX IDX_F5299398115C8573 ON `order` (status_record_controleren_door_id)');
$this->addSql('CREATE INDEX IDX_F52993985D8D6689 ON `order` (status_record_versturen_door_id)');
$this->addSql('CREATE INDEX IDX_F529939823544A26 ON `order` (status_verstuurd_door_id)');
$this->addSql('CREATE INDEX IDX_F52993987147D5FE ON `order` (status_geleverd_door_id)');
$this->addSql('CREATE INDEX IDX_F52993981A890CAE ON `order` (status_vervallen_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_F5299398944AF174');
$this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F5299398CF9B248');
$this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F529939881706800');
$this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F5299398115C8573');
$this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F52993985D8D6689');
$this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F529939823544A26');
$this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F52993987147D5FE');
$this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F52993981A890CAE');
$this->addSql('DROP INDEX IDX_F5299398944AF174 ON `order`');
$this->addSql('DROP INDEX IDX_F5299398CF9B248 ON `order`');
$this->addSql('DROP INDEX IDX_F529939881706800 ON `order`');
$this->addSql('DROP INDEX IDX_F5299398115C8573 ON `order`');
$this->addSql('DROP INDEX IDX_F52993985D8D6689 ON `order`');
$this->addSql('DROP INDEX IDX_F529939823544A26 ON `order`');
$this->addSql('DROP INDEX IDX_F52993987147D5FE ON `order`');
$this->addSql('DROP INDEX IDX_F52993981A890CAE ON `order`');
$this->addSql('ALTER TABLE `order` DROP status_record_maken_door_id, DROP status_ontwerp_maken_door_id, DROP status_ontwerp_controleren_door_id, DROP status_record_controleren_door_id, DROP status_record_versturen_door_id, DROP status_verstuurd_door_id, DROP status_geleverd_door_id, DROP status_vervallen_door_id, DROP status_record_maken_datum, DROP status_ontwerp_maken_datum, DROP status_ontwerp_controleren_datum, DROP status_record_controleren_datum, DROP status_record_versturen_datum, DROP status_verstuurd_datum, DROP status_geleverd_datum, DROP status_vervallen_datum');
}
}