aboutsummaryrefslogtreecommitdiff
path: root/sqitch/deploy
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-12-04 22:04:44 +0100
committerChristopher Baines <mail@cbaines.net>2019-12-12 20:07:22 +0000
commitd2405f6c77bd0b19b913d7d8c76c6cdc3e347e82 (patch)
tree5111b1916f7e5aff6a40a286c5fa9d4662cc2fc8 /sqitch/deploy
parent299f9dc4807627f0f6ee3c4040893461de55f997 (diff)
downloaddata-service-d2405f6c77bd0b19b913d7d8c76c6cdc3e347e82.tar
data-service-d2405f6c77bd0b19b913d7d8c76c6cdc3e347e82.tar.gz
Add a table to record where narinfo files were fetched from
Otherwise it's hard to associated narinfo files to build servers.
Diffstat (limited to 'sqitch/deploy')
-rw-r--r--sqitch/deploy/narinfo_fetch_record.sql12
1 files changed, 12 insertions, 0 deletions
diff --git a/sqitch/deploy/narinfo_fetch_record.sql b/sqitch/deploy/narinfo_fetch_record.sql
new file mode 100644
index 0000000..26abd35
--- /dev/null
+++ b/sqitch/deploy/narinfo_fetch_record.sql
@@ -0,0 +1,12 @@
+-- Deploy guix-data-service:narinfo_fetch_record to pg
+
+BEGIN;
+
+CREATE TABLE narinfo_fetch_records (
+ id integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
+ narinfo_signature_data_id integer NOT NULL REFERENCES narinfo_signature_data(id),
+ build_server_id integer NOT NULL REFERENCES build_servers(id),
+ fetched_at timestamp without time zone DEFAULT clock_timestamp()
+);
+
+COMMIT;