addSql('ALTER TABLE chill_person_social_work_evaluation DROP url'); } public function getDescription(): string { return 'Add url to SocialWork Evaluation'; } public function up(Schema $schema): void { $this->addSql('ALTER TABLE chill_person_social_work_evaluation ADD url TEXT DEFAULT NULL'); $this->addSql("UPDATE chill_person_social_work_evaluation SET url = CASE WHEN title->>'fr' LIKE 'http%' THEN title->>'fr' ELSE null END;"); } }