Skip to content

Commit

Permalink
Stop updating legacy repositories history
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Dec 12, 2024
1 parent 1d82a0d commit 7c1e242
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions sql.d/update/update_histories.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@
--------------------------------------------------------------------------------

-- per-repository counters
INSERT INTO repositories_history (
ts,
snapshot
)
SELECT
now(),
jsonb_object_agg(snapshot.name, to_jsonb(snapshot) - 'name')
FROM (
SELECT
name,
num_metapackages,
num_metapackages_unique,
num_metapackages_newest,
num_metapackages_outdated,
num_metapackages_comparable,
num_metapackages_problematic,
num_problems,
num_maintainers,
num_metapackages_vulnerable
FROM repositories
) AS snapshot;
--INSERT INTO repositories_history (
-- ts,
-- snapshot
--)
--SELECT
-- now(),
-- jsonb_object_agg(snapshot.name, to_jsonb(snapshot) - 'name')
--FROM (
-- SELECT
-- name,
-- num_metapackages,
-- num_metapackages_unique,
-- num_metapackages_newest,
-- num_metapackages_outdated,
-- num_metapackages_comparable,
-- num_metapackages_problematic,
-- num_problems,
-- num_maintainers,
-- num_metapackages_vulnerable
-- FROM repositories
--) AS snapshot;

INSERT INTO repositories_history_new (
repository_id,
Expand Down

0 comments on commit 7c1e242

Please sign in to comment.