db->tableExists('assessment_forms') || $this->db->fieldExists('education_committee_note', 'assessment_forms')) { return; } $this->forge->addColumn('assessment_forms', [ 'education_committee_note' => [ 'type' => 'TEXT', 'null' => true, 'after' => 'status', ], ]); } public function down(): void { if ($this->db->tableExists('assessment_forms') && $this->db->fieldExists('education_committee_note', 'assessment_forms')) { $this->forge->dropColumn('assessment_forms', 'education_committee_note'); } } }