<?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 Version20240113164559 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 bestelling ADD ingevoerd_door_id INT DEFAULT NULL, ADD gewijzigd_door_id INT DEFAULT NULL, ADD status_ingevoerd_door_id INT DEFAULT NULL, ADD status_te_controleren_door_id INT DEFAULT NULL, ADD status_te_verzenden_door_id INT DEFAULT NULL, ADD status_verzonden_door_id INT DEFAULT NULL, ADD status_bevestigd_door_id INT DEFAULT NULL, ADD status_deels_geleverd_door_id INT DEFAULT NULL, ADD status_geleverd_door_id INT DEFAULT NULL, ADD ingevoerd_datum DATE DEFAULT NULL, ADD gewijzigd_datum DATE DEFAULT NULL, ADD status_ingevoerd_datum DATE DEFAULT NULL, ADD status_te_controleren_datum DATE DEFAULT NULL, ADD status_te_verzenden_datum DATE DEFAULT NULL, ADD status_verzonden_datum DATE DEFAULT NULL, ADD status_bevestigd_datum DATE DEFAULT NULL, ADD status_deels_geleverd_datum DATE DEFAULT NULL, ADD status_geleverd_datum DATE DEFAULT NULL');
$this->addSql('ALTER TABLE bestelling ADD CONSTRAINT FK_3114F8C850BD12 FOREIGN KEY (ingevoerd_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE bestelling ADD CONSTRAINT FK_3114F8CCA33DFD FOREIGN KEY (gewijzigd_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE bestelling ADD CONSTRAINT FK_3114F8694CE930 FOREIGN KEY (status_ingevoerd_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE bestelling ADD CONSTRAINT FK_3114F8F9B0A8E8 FOREIGN KEY (status_te_controleren_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE bestelling ADD CONSTRAINT FK_3114F8867CCF1A FOREIGN KEY (status_te_verzenden_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE bestelling ADD CONSTRAINT FK_3114F89C62EEE9 FOREIGN KEY (status_verzonden_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE bestelling ADD CONSTRAINT FK_3114F8D0BCB0BA FOREIGN KEY (status_bevestigd_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE bestelling ADD CONSTRAINT FK_3114F87596A1E0 FOREIGN KEY (status_deels_geleverd_door_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE bestelling ADD CONSTRAINT FK_3114F87147D5FE FOREIGN KEY (status_geleverd_door_id) REFERENCES `user` (id)');
$this->addSql('CREATE INDEX IDX_3114F8C850BD12 ON bestelling (ingevoerd_door_id)');
$this->addSql('CREATE INDEX IDX_3114F8CCA33DFD ON bestelling (gewijzigd_door_id)');
$this->addSql('CREATE INDEX IDX_3114F8694CE930 ON bestelling (status_ingevoerd_door_id)');
$this->addSql('CREATE INDEX IDX_3114F8F9B0A8E8 ON bestelling (status_te_controleren_door_id)');
$this->addSql('CREATE INDEX IDX_3114F8867CCF1A ON bestelling (status_te_verzenden_door_id)');
$this->addSql('CREATE INDEX IDX_3114F89C62EEE9 ON bestelling (status_verzonden_door_id)');
$this->addSql('CREATE INDEX IDX_3114F8D0BCB0BA ON bestelling (status_bevestigd_door_id)');
$this->addSql('CREATE INDEX IDX_3114F87596A1E0 ON bestelling (status_deels_geleverd_door_id)');
$this->addSql('CREATE INDEX IDX_3114F87147D5FE ON bestelling (status_geleverd_door_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE bestelling DROP FOREIGN KEY FK_3114F8C850BD12');
$this->addSql('ALTER TABLE bestelling DROP FOREIGN KEY FK_3114F8CCA33DFD');
$this->addSql('ALTER TABLE bestelling DROP FOREIGN KEY FK_3114F8694CE930');
$this->addSql('ALTER TABLE bestelling DROP FOREIGN KEY FK_3114F8F9B0A8E8');
$this->addSql('ALTER TABLE bestelling DROP FOREIGN KEY FK_3114F8867CCF1A');
$this->addSql('ALTER TABLE bestelling DROP FOREIGN KEY FK_3114F89C62EEE9');
$this->addSql('ALTER TABLE bestelling DROP FOREIGN KEY FK_3114F8D0BCB0BA');
$this->addSql('ALTER TABLE bestelling DROP FOREIGN KEY FK_3114F87596A1E0');
$this->addSql('ALTER TABLE bestelling DROP FOREIGN KEY FK_3114F87147D5FE');
$this->addSql('DROP INDEX IDX_3114F8C850BD12 ON bestelling');
$this->addSql('DROP INDEX IDX_3114F8CCA33DFD ON bestelling');
$this->addSql('DROP INDEX IDX_3114F8694CE930 ON bestelling');
$this->addSql('DROP INDEX IDX_3114F8F9B0A8E8 ON bestelling');
$this->addSql('DROP INDEX IDX_3114F8867CCF1A ON bestelling');
$this->addSql('DROP INDEX IDX_3114F89C62EEE9 ON bestelling');
$this->addSql('DROP INDEX IDX_3114F8D0BCB0BA ON bestelling');
$this->addSql('DROP INDEX IDX_3114F87596A1E0 ON bestelling');
$this->addSql('DROP INDEX IDX_3114F87147D5FE ON bestelling');
$this->addSql('ALTER TABLE bestelling DROP ingevoerd_door_id, DROP gewijzigd_door_id, DROP status_ingevoerd_door_id, DROP status_te_controleren_door_id, DROP status_te_verzenden_door_id, DROP status_verzonden_door_id, DROP status_bevestigd_door_id, DROP status_deels_geleverd_door_id, DROP status_geleverd_door_id, DROP ingevoerd_datum, DROP gewijzigd_datum, DROP status_ingevoerd_datum, DROP status_te_controleren_datum, DROP status_te_verzenden_datum, DROP status_verzonden_datum, DROP status_bevestigd_datum, DROP status_deels_geleverd_datum, DROP status_geleverd_datum');
}
}