Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9696103
092.sql
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
925 B
Subscribers
None
092.sql
View Options
-- SWH DB schema upgrade
-- from_version: 91
-- to_version: 92
-- description: Fix error in function to read license
insert
into
dbversion
(
version
,
release
,
description
)
values
(
92
,
now
(),
'Work In Progress'
);
create
or
replace
function
swh_content_fossology_license_get
()
returns
setof
content_fossology_license_signature
language
plpgsql
as
$$
begin
return
query
select
cl
.
id
,
ic
.
tool_name
,
ic
.
tool_version
,
array
(
select
name
from
fossology_license
where
id
=
ANY
(
array_agg
(
cl
.
license_id
)))
as
licenses
from
tmp_bytea
tcl
inner
join
content_fossology_license
cl
using
(
id
)
inner
join
indexer_configuration
ic
on
ic
.
id
=
cl
.
indexer_configuration_id
group
by
cl
.
id
,
ic
.
tool_name
,
ic
.
tool_version
;
return
;
end
$$
;
comment
on
function
swh_content_fossology_license_get
()
IS
'List content licenses'
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 18, 6:55 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3243256
Attached To
rDSTO Storage manager
Event Timeline
Log In to Comment