<?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 Version20251103223741 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 as_demenagement_customer ADD company VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE as_demenagement_quotation CHANGE requirements_unloading requirements_unloading LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', CHANGE tva_rate tva_rate DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE as_demenagement_quotation_option CHANGE mode mode VARCHAR(20) NOT NULL');
$this->addSql('ALTER TABLE exemple_page_content CHANGE content content LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$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_customer DROP company');
$this->addSql('ALTER TABLE as_demenagement_quotation CHANGE requirements_unloading requirements_unloading LONGTEXT DEFAULT NULL COLLATE `utf8mb4_bin`, CHANGE tva_rate tva_rate DOUBLE PRECISION DEFAULT \'20\'');
$this->addSql('ALTER TABLE as_demenagement_quotation_option CHANGE mode mode VARCHAR(20) DEFAULT \'none\' NOT NULL');
$this->addSql('ALTER TABLE exemple_page_content CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_bin`');
$this->addSql('ALTER TABLE user CHANGE roles roles LONGTEXT NOT NULL COLLATE `utf8mb4_bin`');
}
}