aboutsummaryrefslogtreecommitdiff
path: root/sqitch
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2021-02-02 23:36:56 +0000
committerChristopher Baines <mail@cbaines.net>2021-02-02 23:36:56 +0000
commit7fbcb3a3c26906ee130bcc64e88ea7a2b390de2c (patch)
tree1b1f55d68015f18fabea46865c3762a61d150691 /sqitch
parent6195d7b18f913d0f8f5540858676b7d6c45196b7 (diff)
downloaddata-service-7fbcb3a3c26906ee130bcc64e88ea7a2b390de2c.tar
data-service-7fbcb3a3c26906ee130bcc64e88ea7a2b390de2c.tar.gz
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.
Diffstat (limited to 'sqitch')
-rw-r--r--sqitch/deploy/remove_guix_revisions_store_path.sql7
-rw-r--r--sqitch/revert/remove_guix_revisions_store_path.sql7
-rw-r--r--sqitch/sqitch.plan1
-rw-r--r--sqitch/verify/remove_guix_revisions_store_path.sql7
4 files changed, 22 insertions, 0 deletions
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 <mail@cbaines
regenerate_latest_build_status 2020-10-21T18:39:03Z Christopher Baines <mail@cbaines.net> # Regenerate the latest_build_status table
guix_revision_package_derivations_add_package_derivation_index 2020-10-27T16:58:08Z Christopher Baines <mail@cbaines.net> # Add index for guix_revision_package_derivations.package_derivation_id
increase_derivation_inputs_statistics_targets 2020-12-27T10:34:58Z Christopher Baines <mail@cbaines.net> # Increase stats targets on derivation_inputs fields
+remove_guix_revisions_store_path 2021-02-02T20:06:18Z Christopher Baines <mail@cbaines.net> # 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;