migrations/Version20210831222042.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 Version20210831222042 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 school ADD principal_name VARCHAR(255) DEFAULT NULL, ADD principal_email VARCHAR(255) DEFAULT NULL, ADD school_contact VARCHAR(255) DEFAULT NULL, ADD school_email VARCHAR(255) DEFAULT NULL, ADD coordinator_name VARCHAR(255) DEFAULT NULL, ADD coordinator_email VARCHAR(255) DEFAULT NULL, ADD coordinator_contact VARCHAR(255) DEFAULT NULL');
        }
    
        public function down(Schema $schema): void
        {
            // this down() migration is auto-generated, please modify it to your needs
            $this->addSql('ALTER TABLE school DROP principal_name, DROP principal_email, DROP school_contact, DROP school_email, DROP coordinator_name, DROP coordinator_email, DROP coordinator_contact');
        }
    }