db->field_exists('qso_start_date', 'lotw_certs')) { $fields = array( 'qso_end_date DATETIME NULL DEFAULT NULL AFTER `date_expires`', 'qso_start_date DATETIME NULL DEFAULT NULL AFTER `date_expires`', ); $this->dbforge->add_column('lotw_certs', $fields); } } public function down() { $this->dbforge->drop_column('lotw_certs', 'qso_start_date'); $this->dbforge->drop_column('lotw_certs', 'qso_end_date'); } }