aboutsummaryrefslogtreecommitdiff
path: root/sqitch/deploy/git_repositories_poll_interval.sql
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-10-09 21:29:58 +0100
committerChristopher Baines <mail@cbaines.net>2023-10-09 22:19:02 +0100
commit10bad53ad57e92dbc3c6207c251f0af1148e8ffc (patch)
treecf42c97b823461457da74db873f2a968c3060e19 /sqitch/deploy/git_repositories_poll_interval.sql
parent9bb8f84741bdd82b638e3a7a84280687d889fc04 (diff)
downloaddata-service-10bad53ad57e92dbc3c6207c251f0af1148e8ffc.tar
data-service-10bad53ad57e92dbc3c6207c251f0af1148e8ffc.tar.gz
Support polling git repositories for new branches/revisions
This is mostly a workaround for the occasional problems with the guix-commits mailing list, as it can break and then the data service doesn't learn about new revisions until the problem is fixed. I think it's still a generally good feature though, and allows deploying the data service without it consuming emails to learn about new revisions, and is a step towards integrating some kind of way of notifying the data service to poll.
Diffstat (limited to 'sqitch/deploy/git_repositories_poll_interval.sql')
-rw-r--r--sqitch/deploy/git_repositories_poll_interval.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/sqitch/deploy/git_repositories_poll_interval.sql b/sqitch/deploy/git_repositories_poll_interval.sql
new file mode 100644
index 0000000..a75cac6
--- /dev/null
+++ b/sqitch/deploy/git_repositories_poll_interval.sql
@@ -0,0 +1,8 @@
+-- Deploy guix-data-service:git_repositories_poll_interval to pg
+
+BEGIN;
+
+ALTER TABLE git_repositories
+ ADD COLUMN poll_interval INTEGER DEFAULT NULL;
+
+COMMIT;