Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8322567
109.sql
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
816 B
Subscribers
None
109.sql
View Options
-- SWH DB schema upgrade
-- from_version: 108
-- to_version: 109
-- description: Add origin_visit to swh_stat_counters
insert
into
dbversion
(
version
,
release
,
description
)
values
(
109
,
now
(),
'Work In Progress'
);
CREATE
OR
REPLACE
FUNCTION
swh_stat_counters
()
RETURNS
SETOF
counter
LANGUAGE
sql
STABLE
AS
$$
select
object_type
as
label
,
value
as
value
from
object_counts
where
object_type
in
(
'content'
,
'directory'
,
'directory_entry_dir'
,
'directory_entry_file'
,
'directory_entry_rev'
,
'occurrence'
,
'occurrence_history'
,
'origin'
,
'origin_visit'
,
'person'
,
'entity'
,
'entity_history'
,
'release'
,
'revision'
,
'revision_history'
,
'skipped_content'
);
$$
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 3, 7:38 AM (5 d, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3239533
Attached To
rDSTOC swh-storage-cassandra
Event Timeline
Log In to Comment