migrations/Version20211013072823.php line 1

Open in your IDE?
  1. <?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 Version20211013072823 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 mission ADD date_depart DATETIME NOT NULL, ADD date_arrivee DATETIME NOT NULL, ADD bus TINYINT(1) NOT NULL, ADD tram TINYINT(1) NOT NULL, ADD metro TINYINT(1) NOT NULL, ADD commentaire LONGTEXT DEFAULT NULL');
        }
    
        public function down(Schema $schema): void
        {
            // this down() migration is auto-generated, please modify it to your needs
            $this->addSql('ALTER TABLE mission DROP date_depart, DROP date_arrivee, DROP bus, DROP tram, DROP metro, DROP commentaire');
        }
    }