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