db->field_data($this->config->item('table_name')); foreach ($fields as $field) { if ($field->name == 'COL_AWARD_SUMMITED') { $this->db->query( 'ALTER TABLE ' . $this->db->escape_identifiers($this->config->item('table_name')) . ' CHANGE COL_AWARD_SUMMITED COL_AWARD_SUBMITTED VARCHAR(255)' ); return; } } } public function down() { $this->db->query( 'ALTER TABLE ' . $this->db->escape_identifiers($this->config->item('table_name')) . ' CHANGE COL_AWARD_SUBMITTED COL_AWARD_SUMMITED VARCHAR(255)' ); } }