Stop using package_versions_by_guix_revision_range
It's been replaced by the package_derivations_by_guix_revision_range table.
This commit is contained in:
parent
102f7a0536
commit
ca0d3ee754
7 changed files with 23 additions and 77 deletions
|
|
@ -175,18 +175,6 @@ EOF
|
|||
|
||||
psql -v ON_ERROR_STOP=1 --echo-queries --no-psqlrc "$URI_FOR_DATABASE" -U guix_data_service <<EOF &
|
||||
|
||||
WITH guix_revision_ids AS (
|
||||
SELECT id FROM guix_revisions WHERE commit IN (
|
||||
SELECT commit FROM git_branches
|
||||
)
|
||||
)
|
||||
DELETE FROM package_versions_by_guix_revision_range
|
||||
WHERE first_guix_revision_id NOT IN (SELECT id FROM guix_revision_ids) OR
|
||||
last_guix_revision_id NOT IN (SELECT id FROM guix_revision_ids);
|
||||
EOF
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --echo-queries --no-psqlrc "$URI_FOR_DATABASE" -U guix_data_service <<EOF &
|
||||
|
||||
WITH guix_revision_ids AS (
|
||||
SELECT id FROM guix_revisions WHERE commit IN (
|
||||
SELECT commit FROM git_branches
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue