aboutsummaryrefslogtreecommitdiff
path: root/sqitch
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-12-16 06:43:20 +0000
committerChristopher Baines <mail@cbaines.net>2020-12-16 06:43:20 +0000
commit7bd76b74e0e57045b3af23683d3ca72803bfd7be (patch)
tree12b821fd88093825b7a45756f1b79c067a5613ca /sqitch
parenta6c75d2053908b058c6c877efc0eaae5d43d5cb6 (diff)
downloadbuild-coordinator-7bd76b74e0e57045b3af23683d3ca72803bfd7be.tar
build-coordinator-7bd76b74e0e57045b3af23683d3ca72803bfd7be.tar.gz
Implement build cancelation
Diffstat (limited to 'sqitch')
-rw-r--r--sqitch/pg/deploy/support_build_cancelation.sql7
-rw-r--r--sqitch/pg/revert/support_build_cancelation.sql7
-rw-r--r--sqitch/pg/verify/support_build_cancelation.sql7
-rw-r--r--sqitch/sqitch.plan1
-rw-r--r--sqitch/sqlite/deploy/support_build_cancelation.sql7
-rw-r--r--sqitch/sqlite/revert/support_build_cancelation.sql7
-rw-r--r--sqitch/sqlite/verify/support_build_cancelation.sql7
7 files changed, 43 insertions, 0 deletions
diff --git a/sqitch/pg/deploy/support_build_cancelation.sql b/sqitch/pg/deploy/support_build_cancelation.sql
new file mode 100644
index 0000000..169a6c9
--- /dev/null
+++ b/sqitch/pg/deploy/support_build_cancelation.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-build-coordinator:support_build_cancelation to pg
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/pg/revert/support_build_cancelation.sql b/sqitch/pg/revert/support_build_cancelation.sql
new file mode 100644
index 0000000..87e382d
--- /dev/null
+++ b/sqitch/pg/revert/support_build_cancelation.sql
@@ -0,0 +1,7 @@
+-- Revert guix-build-coordinator:support_build_cancelation from pg
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/pg/verify/support_build_cancelation.sql b/sqitch/pg/verify/support_build_cancelation.sql
new file mode 100644
index 0000000..c6f5ca1
--- /dev/null
+++ b/sqitch/pg/verify/support_build_cancelation.sql
@@ -0,0 +1,7 @@
+-- Verify guix-build-coordinator:support_build_cancelation on pg
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;
diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan
index c0a87ed..95a522c 100644
--- a/sqitch/sqitch.plan
+++ b/sqitch/sqitch.plan
@@ -22,3 +22,4 @@ add_builds_end_time 2020-06-27T20:58:01Z Christopher Baines <mail@cbaines.net> #
build_allocation_agent_requested_systems 2020-07-02T19:45:02Z Christopher Baines <mail@cbaines.net> # Add new build_allocation_agent_requested_systems table
add_fixed_output_to_derivations 2020-07-18T14:49:51Z Christopher Baines <mail@cbaines.net> # Add derivations.fixed_output
add_unbuilt_outputs_table 2020-11-06T18:58:08Z Christopher Baines <mail@cbaines.net> # Add unbuilt_outputs
+support_build_cancelation 2020-12-11T18:25:42Z Christopher Baines <mail@cbaines.net> # Add builds.canceled
diff --git a/sqitch/sqlite/deploy/support_build_cancelation.sql b/sqitch/sqlite/deploy/support_build_cancelation.sql
new file mode 100644
index 0000000..445a033
--- /dev/null
+++ b/sqitch/sqlite/deploy/support_build_cancelation.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-build-coordinator:support_build_cancelation to sqlite
+
+BEGIN;
+
+ALTER TABLE builds ADD COLUMN canceled BOOLEAN NOT NULL DEFAULT 0;
+
+COMMIT;
diff --git a/sqitch/sqlite/revert/support_build_cancelation.sql b/sqitch/sqlite/revert/support_build_cancelation.sql
new file mode 100644
index 0000000..d62cee4
--- /dev/null
+++ b/sqitch/sqlite/revert/support_build_cancelation.sql
@@ -0,0 +1,7 @@
+-- Revert guix-build-coordinator:support_build_cancelation from sqlite
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/sqlite/verify/support_build_cancelation.sql b/sqitch/sqlite/verify/support_build_cancelation.sql
new file mode 100644
index 0000000..1ab5d2a
--- /dev/null
+++ b/sqitch/sqlite/verify/support_build_cancelation.sql
@@ -0,0 +1,7 @@
+-- Verify guix-build-coordinator:support_build_cancelation on sqlite
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;