Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394025
081.sql
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
608 B
Subscribers
None
081.sql
View Options
-- SWH DB schema upgrade
-- from_version: 80
-- to_version: 81
-- description:
insert
into
dbversion
(
version
,
release
,
description
)
values
(
81
,
now
(),
'Work In Progress'
);
drop
function
swh_cache_content_get_by_batch
(
bytea
,
bigint
);
create
or
replace
function
swh_cache_content_get
()
returns
setof
content_signature
language
sql
stable
as
$$
SELECT
DISTINCT
c
.
sha1
,
c
.
sha1_git
,
c
.
sha256
FROM
cache_content_revision
ccr
INNER
JOIN
content
as
c
ON
ccr
.
content
=
c
.
sha1_git
$$
;
COMMENT
ON
FUNCTION
swh_cache_content_get
()
IS
'Retrieve all distinct cache contents'
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 4, 7:20 PM (4 d, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3240334
Attached To
R65 Staging repository
Event Timeline
Log In to Comment