db->field_exists('user_previous_qsl_type', 'users')) { $fields = array( 'user_previous_qsl_type integer DEFAULT 0', ); $this->dbforge->add_column('users', $fields); } } public function down() { if ($this->db->field_exists('user_previous_qsl_type', 'users')) { $this->dbforge->drop_column('users', 'user_previous_qsl_type'); } } }