Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9345254
119.sql
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
850 B
Subscribers
None
119.sql
View Options
-- SWH DB schema upgrade
-- from_version: 118
-- to_version: 119
-- description: Drop unused functions using temporary tables
insert
into
dbversion
(
version
,
release
,
description
)
values
(
119
,
now
(),
'Work In Progress'
);
CREATE
OR
REPLACE
FUNCTION
swh_content_add
()
RETURNS
void
LANGUAGE
plpgsql
AS
$$
begin
insert
into
content
(
sha1
,
sha1_git
,
sha256
,
blake2s256
,
length
,
status
)
select
distinct
sha1
,
sha1_git
,
sha256
,
blake2s256
,
length
,
status
from
tmp_content
;
return
;
end
$$
;
DROP
FUNCTION
swh_content_missing_per_sha1
();
DROP
FUNCTION
swh_object_find_by_sha1_git
();
DROP
FUNCTION
swh_content_missing
();
DROP
FUNCTION
swh_release_get
();
DROP
FUNCTION
swh_release_missing
();
DROP
FUNCTION
swh_revision_get
();
DROP
FUNCTION
swh_revision_missing
();
DROP
FUNCTION
swh_mktemp_bytea
();
DROP
TYPE
object_found
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 4, 3:15 PM (4 d, 15 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3296491
Attached To
rDSTO Storage manager
Event Timeline
Log In to Comment