From 7fbcb3a3c26906ee130bcc64e88ea7a2b390de2c Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 2 Feb 2021 23:36:56 +0000 Subject: Store channel instance derivations in a separate transaction This means that these derivations are stored, even if a later part of the process fails. Having the channel instance derivations stored might help work out why the failure occurred, or better display information about it. --- sqitch/deploy/remove_guix_revisions_store_path.sql | 7 +++++++ sqitch/revert/remove_guix_revisions_store_path.sql | 7 +++++++ sqitch/sqitch.plan | 1 + sqitch/verify/remove_guix_revisions_store_path.sql | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 sqitch/deploy/remove_guix_revisions_store_path.sql create mode 100644 sqitch/revert/remove_guix_revisions_store_path.sql create mode 100644 sqitch/verify/remove_guix_revisions_store_path.sql (limited to 'sqitch') diff --git a/sqitch/deploy/remove_guix_revisions_store_path.sql b/sqitch/deploy/remove_guix_revisions_store_path.sql new file mode 100644 index 0000000..aaec02b --- /dev/null +++ b/sqitch/deploy/remove_guix_revisions_store_path.sql @@ -0,0 +1,7 @@ +-- Deploy guix-data-service:remove_guix_revisions_store_path to pg + +BEGIN; + +ALTER TABLE guix_revisions DROP COLUMN store_path; + +COMMIT; diff --git a/sqitch/revert/remove_guix_revisions_store_path.sql b/sqitch/revert/remove_guix_revisions_store_path.sql new file mode 100644 index 0000000..1165227 --- /dev/null +++ b/sqitch/revert/remove_guix_revisions_store_path.sql @@ -0,0 +1,7 @@ +-- Revert guix-data-service:remove_guix_revisions_store_path from pg + +BEGIN; + +-- XXX Add DDLs here. + +COMMIT; diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan index fc3b998..b5af91d 100644 --- a/sqitch/sqitch.plan +++ b/sqitch/sqitch.plan @@ -77,3 +77,4 @@ create_latest_build_status 2020-10-13T17:22:39Z Christopher Baines # Regenerate the latest_build_status table guix_revision_package_derivations_add_package_derivation_index 2020-10-27T16:58:08Z Christopher Baines # Add index for guix_revision_package_derivations.package_derivation_id increase_derivation_inputs_statistics_targets 2020-12-27T10:34:58Z Christopher Baines # Increase stats targets on derivation_inputs fields +remove_guix_revisions_store_path 2021-02-02T20:06:18Z Christopher Baines # Drop guix_revisions.store_path diff --git a/sqitch/verify/remove_guix_revisions_store_path.sql b/sqitch/verify/remove_guix_revisions_store_path.sql new file mode 100644 index 0000000..87deee3 --- /dev/null +++ b/sqitch/verify/remove_guix_revisions_store_path.sql @@ -0,0 +1,7 @@ +-- Verify guix-data-service:remove_guix_revisions_store_path on pg + +BEGIN; + +-- XXX Add verifications here. + +ROLLBACK; -- cgit v1.2.3