https://github.com/SoftwareHeritage/swh-storage
Raw File
Tip revision: baa127e7f86335488b029460908a11d6753bc8ac authored by Jenkins for Software Heritage on 28 April 2020, 11:52:09 UTC
Updated debian changelog for version 0.0.188
Tip revision: baa127e
109.sql
-- 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'
    );
$$;

back to top