<?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 Version20260204201803 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('CREATE TABLE as_demenagement_quotation_option_custom (id INT AUTO_INCREMENT NOT NULL, quotation_id INT NOT NULL, nom VARCHAR(255) NOT NULL, mode VARCHAR(20) NOT NULL, INDEX IDX_C4A06259B4EA4E60 (quotation_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE as_demenagement_quotation_option_custom ADD CONSTRAINT FK_C4A06259B4EA4E60 FOREIGN KEY (quotation_id) REFERENCES as_demenagement_quotation (id)');
$this->addSql('ALTER TABLE as_demenagement_quotation CHANGE options_supp options_supp VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE user CHANGE roles roles LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE as_demenagement_quotation_option_custom DROP FOREIGN KEY FK_C4A06259B4EA4E60');
$this->addSql('DROP TABLE as_demenagement_quotation_option_custom');
$this->addSql('ALTER TABLE as_demenagement_quotation CHANGE options_supp options_supp TEXT DEFAULT NULL');
$this->addSql('ALTER TABLE user CHANGE roles roles LONGTEXT NOT NULL COLLATE `utf8mb4_bin`');
}
}