<?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 Version20250520080008 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 invoice DROP FOREIGN KEY FK_90651744EBF23851');
$this->addSql('DROP INDEX IDX_90651744EBF23851 ON invoice');
$this->addSql('ALTER TABLE invoice DROP delivery_address_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE inventory_order CHANGE pallet_type pallet_type LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_bin`');
$this->addSql('ALTER TABLE invoice ADD delivery_address_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE invoice ADD CONSTRAINT FK_90651744EBF23851 FOREIGN KEY (delivery_address_id) REFERENCES delivery_address (id)');
$this->addSql('CREATE INDEX IDX_90651744EBF23851 ON invoice (delivery_address_id)');
$this->addSql('ALTER TABLE user CHANGE roles roles LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_bin`');
}
}