addSql('CREATE TABLE referral_source (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', agency VARCHAR(10) NOT NULL, name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, phone VARCHAR(15) DEFAULT NULL, county VARCHAR(100) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('ALTER TABLE member_case DROP hours, DROP end_date, DROP referral_number, CHANGE country county VARCHAR(45) DEFAULT NULL'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('DROP TABLE referral_source'); $this->addSql('ALTER TABLE member_case ADD hours DOUBLE PRECISION NOT NULL, ADD end_date DATE NOT NULL, ADD referral_number VARCHAR(45) NOT NULL, CHANGE county country VARCHAR(45) DEFAULT NULL'); } }