Project

General

Profile

What happens when deleting custom field?

Added by Ivan Cenov over 12 years ago

Hi,

I created recently a custom issue field of type checkbox (yes/no, true/false). I created tens of issues with this field after then.

Now I want to remove this field, because changed my mind. What would happen, when I remove it? Will the issues with this field change? Is there possibility of database inconsistency?


Replies (2)

RE: What happens when deleting custom field? - Added by Mischa The Evil over 12 years ago

Ivan Cenov wrote:

What would happen, when I remove it?

During the destroy action the custom field is deleted from the database table custom_fields. Also the values of the field with the same customized_id are deleted from the custom_values table.

Will the issues with this field change?

Yes, since the actual field will be removed including its value. This is not "logged" in the issue journal (the issue-notes). Any reference to the deleted custom field (e.g. their names in journals during value changes) will be replaced by the (numeric) id of the deleted custom field; the id isn't reused anyway.

Is there possibility of database inconsistency?

Nope... See above.

    (1-2/2)