It is because in the CLARIN-DSpace5 the license_definition is connected with the non-extended license label directly and not by joining the license_label table thru the license_label_extended_mapping. Id of the non-extended license label is stored in the license_definition.label_id column. But in the CLARIN-DSpace7 all the license labels are connected with the license_definition table thru the license_label_extended_mapping. That is the reason why the license_label_extended_mapping has more records.
You can select all the data where the license_label.is_extended = false and count of the records will be 136.
select count(*) from license_definition
join license_label_extended_mapping llem using(license_id)
join license_label ll on (llem.label_id = ll.label_id)
where ll.is_extended = true;
It is because in the CLARIN-DSpace5 the license_definition is connected with the non-extended license label directly and not by joining the
license_label
table thru thelicense_label_extended_mapping
. Id of the non-extended license label is stored in thelicense_definition.label_id
column. But in the CLARIN-DSpace7 all the license labels are connected with thelicense_definition
table thru thelicense_label_extended_mapping
. That is the reason why thelicense_label_extended_mapping
has more records.You can select all the data where the
license_label.is_extended = false
and count of the records will be 136.