Allow to delete from t_available_datasets and t_target_data
Motivation
- current implementaion of fn_refresh_t_additivity_set_plot does not allow to delete records from t_available_datasets but the usecase is valid
- for example during the interpretation the analyst may make a decision to use different categorization
- the delete is probably prohibited also on table t_target_data, the general though was that the is_latest=false will be used, this is true only to update of values but we would like to delete all categorization including records from c_area_domain/category
Solution
- make the additivity check to fire also when deleting the records from t_available_datasets and t_target_data respectively to prevent to delete wrong records
- while allowing to delete those which will not affect the additivity