db->fieldExists('final_pdf_file', 'exam_drafts')) { return; } $this->forge->addColumn('exam_drafts', [ 'final_pdf_file' => [ 'type' => 'VARCHAR', 'constraint' => 255, 'null' => true, 'after' => 'final_filename', ], ]); } public function down() { if ($this->db->fieldExists('final_pdf_file', 'exam_drafts')) { $this->forge->dropColumn('exam_drafts', 'final_pdf_file'); } } }