diff options
author | Christopher Baines <mail@cbaines.net> | 2020-03-24 20:44:57 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-03-24 20:44:57 +0000 |
commit | ca0d3ee7543b64eca32422a8e29f5f853923750f (patch) | |
tree | 94f60c514b3f205cd859adc649f53525cf19cd45 /scripts/guix-data-service-create-small-backup | |
parent | 102f7a0536b76f60c06aa42ef1677ca76a4b18a7 (diff) | |
download | data-service-ca0d3ee7543b64eca32422a8e29f5f853923750f.tar data-service-ca0d3ee7543b64eca32422a8e29f5f853923750f.tar.gz |
Stop using package_versions_by_guix_revision_range
It's been replaced by the package_derivations_by_guix_revision_range table.
Diffstat (limited to 'scripts/guix-data-service-create-small-backup')
-rwxr-xr-x | scripts/guix-data-service-create-small-backup | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/scripts/guix-data-service-create-small-backup b/scripts/guix-data-service-create-small-backup index 6616c52..e5f5774 100755 --- a/scripts/guix-data-service-create-small-backup +++ b/scripts/guix-data-service-create-small-backup @@ -180,18 +180,6 @@ WITH guix_revision_ids AS ( 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 - ) -) DELETE FROM package_derivations_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); |