aboutsummaryrefslogtreecommitdiff
path: root/sqitch/revert
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-06-02 22:00:29 +0100
committerChristopher Baines <mail@cbaines.net>2019-06-02 22:00:29 +0100
commit5d06a28577f6a917ebacd3d6e7aab1a7c61c6e27 (patch)
tree61beae6704cabcb509ad7e5a3c2f0efaa095aaef /sqitch/revert
parent4ccf3132b6f7e7946fc148228d4ff1ca93ab422c (diff)
downloaddata-service-5d06a28577f6a917ebacd3d6e7aab1a7c61c6e27.tar
data-service-5d06a28577f6a917ebacd3d6e7aab1a7c61c6e27.tar.gz
Add more detailed new revision job handling
Create a new events table for the new guix revision jobs, and update this when processing a job starts, as well as finished with success or failure. Additionally, remove the dependnency on open-inferior/container, as this functionality isn't merged in to Guix master yet.
Diffstat (limited to 'sqitch/revert')
-rw-r--r--sqitch/revert/load_new_guix_revision_job_events.sql12
1 files changed, 12 insertions, 0 deletions
diff --git a/sqitch/revert/load_new_guix_revision_job_events.sql b/sqitch/revert/load_new_guix_revision_job_events.sql
new file mode 100644
index 0000000..a0a1eec
--- /dev/null
+++ b/sqitch/revert/load_new_guix_revision_job_events.sql
@@ -0,0 +1,12 @@
+-- Revert guix-data-service:load_new_guix_revision_job_events from pg
+
+BEGIN;
+
+DROP TABLE load_new_guix_revision_job_events;
+
+ALTER TABLE load_new_guix_revision_jobs
+ DROP CONSTRAINT load_new_guix_revision_jobs_id;
+
+DROP TYPE IF EXISTS job_event;
+
+COMMIT;