getTable('track_e_attempt'); if ($trackEAttempt->hasColumn('course_code')) { $this->addSql("ALTER TABLE track_e_attempt DROP COLUMN course_code"); } } /** * Down does not do anything in this case because the field shouldn't * have been there in the first place * @param Schema $schema */ public function down(Schema $schema) { } }