<?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 Version20220210135910 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// Changement de commentaire en LONGTEXT dans la table histo
$this->addSql('ALTER TABLE histo CHANGE commentaire commentaire LONGTEXT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// RĂ©tablissement des valeurs par default de la table histo
$this->addSql('ALTER TABLE histo CHANGE commentaire commentaire VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
}
}