addSql('ALTER TABLE paste ALTER secret DROP NOT NULL'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('CREATE SCHEMA public'); $this->addSql('ALTER TABLE paste ALTER secret SET NOT NULL'); } }