aboutsummaryrefslogtreecommitdiff
path: root/sqitch/sqlite/deploy
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-04-13 15:44:05 +0100
committerChristopher Baines <mail@cbaines.net>2020-04-13 15:44:05 +0100
commitcc2d1ddf2444e33196443eba3df7961b6dd5917e (patch)
tree52974451df5ec664ee0f002f7a61baf2954c5464 /sqitch/sqlite/deploy
parent6ffd98ba3689418f4c47efa666c018f3e443fba5 (diff)
downloadbuild-coordinator-cc2d1ddf2444e33196443eba3df7961b6dd5917e.tar
build-coordinator-cc2d1ddf2444e33196443eba3df7961b6dd5917e.tar.gz
Add the build_results table
Diffstat (limited to 'sqitch/sqlite/deploy')
-rw-r--r--sqitch/sqlite/deploy/build_results.sql12
1 files changed, 12 insertions, 0 deletions
diff --git a/sqitch/sqlite/deploy/build_results.sql b/sqitch/sqlite/deploy/build_results.sql
new file mode 100644
index 0000000..abf0085
--- /dev/null
+++ b/sqitch/sqlite/deploy/build_results.sql
@@ -0,0 +1,12 @@
+-- Deploy guix-build-coordinator:build_results to sqlite
+
+BEGIN;
+
+CREATE TABLE build_results (
+ build_id TEXT PRIMARY KEY NOT NULL REFERENCES builds (uuid),
+ agent_id TEXT NOT NULL REFERENCES agents (id),
+ result TEXT NOT NULL,
+ failure_reason
+);
+
+COMMIT;