aboutsummaryrefslogtreecommitdiff
path: root/sqitch
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-06-27 19:47:30 +0100
committerChristopher Baines <mail@cbaines.net>2020-07-01 17:35:22 +0100
commitab51128ee62b22971ea8b52d550e09d1c38f8ecd (patch)
tree8a343c19864f378f0afd1136f85b5447464605a9 /sqitch
parent677d2b8821d9bbb1ab2fb1a05cddd35b3786afa3 (diff)
downloadbuild-coordinator-ab51128ee62b22971ea8b52d550e09d1c38f8ecd.tar
build-coordinator-ab51128ee62b22971ea8b52d550e09d1c38f8ecd.tar.gz
Support storing when builds are created
Diffstat (limited to 'sqitch')
-rw-r--r--sqitch/pg/deploy/builds_created_at.sql7
-rw-r--r--sqitch/pg/revert/builds_created_at.sql7
-rw-r--r--sqitch/pg/verify/builds_created_at.sql7
-rw-r--r--sqitch/sqitch.plan1
-rw-r--r--sqitch/sqlite/deploy/builds_created_at.sql7
-rw-r--r--sqitch/sqlite/revert/builds_created_at.sql7
-rw-r--r--sqitch/sqlite/verify/builds_created_at.sql7
7 files changed, 43 insertions, 0 deletions
diff --git a/sqitch/pg/deploy/builds_created_at.sql b/sqitch/pg/deploy/builds_created_at.sql
new file mode 100644
index 0000000..60f6b2a
--- /dev/null
+++ b/sqitch/pg/deploy/builds_created_at.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-build-coordinator:builds_created_at to pg
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/pg/revert/builds_created_at.sql b/sqitch/pg/revert/builds_created_at.sql
new file mode 100644
index 0000000..f49c06b
--- /dev/null
+++ b/sqitch/pg/revert/builds_created_at.sql
@@ -0,0 +1,7 @@
+-- Revert guix-build-coordinator:builds_created_at from pg
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/pg/verify/builds_created_at.sql b/sqitch/pg/verify/builds_created_at.sql
new file mode 100644
index 0000000..6dc5cd1
--- /dev/null
+++ b/sqitch/pg/verify/builds_created_at.sql
@@ -0,0 +1,7 @@
+-- Verify guix-build-coordinator:builds_created_at on pg
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;
diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan
index 1aa3b80..5623d5b 100644
--- a/sqitch/sqitch.plan
+++ b/sqitch/sqitch.plan
@@ -16,3 +16,4 @@ derivation_outputs_derivation_name_index 2020-05-10T16:24:05Z Christopher Baines
build_results_result_index 2020-05-10T17:27:00Z Christopher Baines <mail@cbaines.net> # Add an index on build_results.result
more_indexes_on_builds_and_derivation_inputs 2020-05-11T08:38:28Z Christopher Baines <mail@cbaines.net> # Add a couple more indexes
build_tags 2020-05-31T13:54:41Z Christopher Baines <mail@cbaines.net> # Support tagging builds
+builds_created_at 2020-06-27T18:30:32Z Christopher Baines <mail@cbaines.net> # Add builds.created_at
diff --git a/sqitch/sqlite/deploy/builds_created_at.sql b/sqitch/sqlite/deploy/builds_created_at.sql
new file mode 100644
index 0000000..378fb70
--- /dev/null
+++ b/sqitch/sqlite/deploy/builds_created_at.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-build-coordinator:builds_created_at to sqlite
+
+BEGIN;
+
+ALTER TABLE builds ADD COLUMN created_at TEXT;
+
+COMMIT;
diff --git a/sqitch/sqlite/revert/builds_created_at.sql b/sqitch/sqlite/revert/builds_created_at.sql
new file mode 100644
index 0000000..84c2e6a
--- /dev/null
+++ b/sqitch/sqlite/revert/builds_created_at.sql
@@ -0,0 +1,7 @@
+-- Revert guix-build-coordinator:builds_created_at from sqlite
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/sqlite/verify/builds_created_at.sql b/sqitch/sqlite/verify/builds_created_at.sql
new file mode 100644
index 0000000..ee1daf9
--- /dev/null
+++ b/sqitch/sqlite/verify/builds_created_at.sql
@@ -0,0 +1,7 @@
+-- Verify guix-build-coordinator:builds_created_at on sqlite
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;