aboutsummaryrefslogtreecommitdiff
path: root/sqitch/sqlite
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-06-27 22:35:17 +0100
committerChristopher Baines <mail@cbaines.net>2020-07-01 17:43:38 +0100
commit00fe8e02d222b3ff7dac141a7938418ba8d60bb3 (patch)
treeb3b0d7ee5efaef08ad7f07842fd6ba2d5e314850 /sqitch/sqlite
parentb5c4e8a4528e2c819176cbe070f6fd8e3e34facd (diff)
downloadbuild-coordinator-00fe8e02d222b3ff7dac141a7938418ba8d60bb3.tar
build-coordinator-00fe8e02d222b3ff7dac141a7938418ba8d60bb3.tar.gz
Support tracking the end time of builds
Diffstat (limited to 'sqitch/sqlite')
-rw-r--r--sqitch/sqlite/deploy/add_builds_end_time.sql7
-rw-r--r--sqitch/sqlite/revert/add_builds_end_time.sql7
-rw-r--r--sqitch/sqlite/verify/add_builds_end_time.sql7
3 files changed, 21 insertions, 0 deletions
diff --git a/sqitch/sqlite/deploy/add_builds_end_time.sql b/sqitch/sqlite/deploy/add_builds_end_time.sql
new file mode 100644
index 0000000..c7e4619
--- /dev/null
+++ b/sqitch/sqlite/deploy/add_builds_end_time.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-build-coordinator:add_builds_end_time to sqlite
+
+BEGIN;
+
+ALTER TABLE builds ADD COLUMN end_time TEXT;
+
+COMMIT;
diff --git a/sqitch/sqlite/revert/add_builds_end_time.sql b/sqitch/sqlite/revert/add_builds_end_time.sql
new file mode 100644
index 0000000..216ac9a
--- /dev/null
+++ b/sqitch/sqlite/revert/add_builds_end_time.sql
@@ -0,0 +1,7 @@
+-- Revert guix-build-coordinator:add_builds_end_time from sqlite
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/sqlite/verify/add_builds_end_time.sql b/sqitch/sqlite/verify/add_builds_end_time.sql
new file mode 100644
index 0000000..4cc73db
--- /dev/null
+++ b/sqitch/sqlite/verify/add_builds_end_time.sql
@@ -0,0 +1,7 @@
+-- Verify guix-build-coordinator:add_builds_end_time on sqlite
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;