migrations/Version20251112124000.php line 1

  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. final class Version20251112124000 extends AbstractMigration
  7. {
  8.     public function getDescription(): string
  9.     {
  10.         return 'Ajoute visio_client_joined (bool) à complement_conseiller';
  11.     }
  12.     public function up(Schema $schema): void
  13.     {
  14.         $this->addSql(<<<'SQL'
  15.             ALTER TABLE complement_conseiller
  16.             ADD visio_client_joined TINYINT(1) DEFAULT NULL COMMENT 'true si un client est déjà joint à la visio active'
  17.         SQL);
  18.     }
  19.     public function down(Schema $schema): void
  20.     {
  21.         $this->addSql(<<<'SQL'
  22.             ALTER TABLE complement_conseiller
  23.             DROP COLUMN visio_client_joined
  24.         SQL);
  25.     }
  26. }