EOSC Services - minor
This commit is contained in:
parent
b6a7ff3a99
commit
2ade69dea6
|
@ -233,7 +233,7 @@ public class MigrateDbEntitiesApplication extends AbstractMigrationApplication i
|
|||
|
||||
final Datasource ds = new Datasource();
|
||||
|
||||
ds.setId(createOpenaireId(10, rs.getString("datasourceid"), true));
|
||||
ds.setId(createOpenaireId(10, rs.getString("id"), true));
|
||||
ds
|
||||
.setOriginalId(
|
||||
Arrays
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
SELECT
|
||||
d.id AS datasourceid,
|
||||
d.id AS id,
|
||||
array_remove(d.id || array_agg(distinct CASE WHEN dp.pid like 'piwik%' THEN di.pid ELSE NULL END) || array_agg(distinct dds.duplicate), NULL) AS originalid,
|
||||
array_remove(array_agg(distinct CASE WHEN di.pid NOT LIKE 'piwik%' THEN di.pid||'###'||di.issuertype||'@@@'||'dnet:pid_types' ELSE NULL END), NULL) as pid,
|
||||
d.officialname AS officialname,
|
||||
|
|
Loading…
Reference in New Issue