aboutsummaryrefslogtreecommitdiff
path: root/sqitch/pg
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2021-11-12 14:08:41 +0000
committerChristopher Baines <mail@cbaines.net>2021-11-12 14:08:41 +0000
commitf48e07b0e4b8e739848f8a1fc09b6f1dd4a74bca (patch)
treea7ccf591b6442b2fb424f448d45c3ae73ffec572 /sqitch/pg
parentaa6fe55754f7a7c21e4fb454a641d24ab957a0de (diff)
downloadbuild-coordinator-f48e07b0e4b8e739848f8a1fc09b6f1dd4a74bca.tar
build-coordinator-f48e07b0e4b8e739848f8a1fc09b6f1dd4a74bca.tar.gz
Add an active field to the agents table
To allow making agents inactive to stop allocating builds to them.
Diffstat (limited to 'sqitch/pg')
-rw-r--r--sqitch/pg/deploy/add_agents_active.sql7
-rw-r--r--sqitch/pg/revert/add_agents_active.sql7
-rw-r--r--sqitch/pg/verify/add_agents_active.sql7
3 files changed, 21 insertions, 0 deletions
diff --git a/sqitch/pg/deploy/add_agents_active.sql b/sqitch/pg/deploy/add_agents_active.sql
new file mode 100644
index 0000000..66505af
--- /dev/null
+++ b/sqitch/pg/deploy/add_agents_active.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-build-coordinator:add_agents_active to pg
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/pg/revert/add_agents_active.sql b/sqitch/pg/revert/add_agents_active.sql
new file mode 100644
index 0000000..9c1a86e
--- /dev/null
+++ b/sqitch/pg/revert/add_agents_active.sql
@@ -0,0 +1,7 @@
+-- Revert guix-build-coordinator:add_agents_active from pg
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/pg/verify/add_agents_active.sql b/sqitch/pg/verify/add_agents_active.sql
new file mode 100644
index 0000000..fc338da
--- /dev/null
+++ b/sqitch/pg/verify/add_agents_active.sql
@@ -0,0 +1,7 @@
+-- Verify guix-build-coordinator:add_agents_active on pg
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;