From c31c9575e02687f6dcc5f1c04724d0b3c8be8b66 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 8 Feb 2020 12:03:41 +0000 Subject: Support excluding and including branches from a repository So that you can have the Guix Data Service only pay attention to some of the branches. --- .../allow_including_and_excluding_branches_for_repositories.sql | 8 ++++++++ .../allow_including_and_excluding_branches_for_repositories.sql | 7 +++++++ sqitch/sqitch.plan | 1 + .../allow_including_and_excluding_branches_for_repositories.sql | 7 +++++++ 4 files changed, 23 insertions(+) create mode 100644 sqitch/deploy/allow_including_and_excluding_branches_for_repositories.sql create mode 100644 sqitch/revert/allow_including_and_excluding_branches_for_repositories.sql create mode 100644 sqitch/verify/allow_including_and_excluding_branches_for_repositories.sql (limited to 'sqitch') diff --git a/sqitch/deploy/allow_including_and_excluding_branches_for_repositories.sql b/sqitch/deploy/allow_including_and_excluding_branches_for_repositories.sql new file mode 100644 index 0000000..37c98ad --- /dev/null +++ b/sqitch/deploy/allow_including_and_excluding_branches_for_repositories.sql @@ -0,0 +1,8 @@ +-- Deploy guix-data-service:allow_including_and_excluding_branches_for_repositories to pg + +BEGIN; + +ALTER TABLE git_repositories ADD COLUMN included_branches varchar[]; +ALTER TABLE git_repositories ADD COLUMN excluded_branches varchar[]; + +COMMIT; diff --git a/sqitch/revert/allow_including_and_excluding_branches_for_repositories.sql b/sqitch/revert/allow_including_and_excluding_branches_for_repositories.sql new file mode 100644 index 0000000..5a89181 --- /dev/null +++ b/sqitch/revert/allow_including_and_excluding_branches_for_repositories.sql @@ -0,0 +1,7 @@ +-- Revert guix-data-service:allow_including_and_excluding_branches_for_repositories from pg + +BEGIN; + +-- XXX Add DDLs here. + +COMMIT; diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan index 2d04104..6eabcc1 100644 --- a/sqitch/sqitch.plan +++ b/sqitch/sqitch.plan @@ -48,3 +48,4 @@ change_package_derivations_target 2020-02-07T19:29:50Z Christopher Baines # Remove old cross derivations increase_fillfactor_for_some_indexes 2020-02-07T20:49:17Z Christopher Baines # Increase the fillfactor for some btree indexes change_package_derivations_by_guix_revision_range_target 2020-02-08T10:13:07Z Christopher Baines # Change the values for package_derivations_by_guix_revision_range target +allow_including_and_excluding_branches_for_repositories 2020-02-08T11:30:02Z Christopher Baines # Allow including and excluding branches for repositories diff --git a/sqitch/verify/allow_including_and_excluding_branches_for_repositories.sql b/sqitch/verify/allow_including_and_excluding_branches_for_repositories.sql new file mode 100644 index 0000000..fbec379 --- /dev/null +++ b/sqitch/verify/allow_including_and_excluding_branches_for_repositories.sql @@ -0,0 +1,7 @@ +-- Verify guix-data-service:allow_including_and_excluding_branches_for_repositories on pg + +BEGIN; + +-- XXX Add verifications here. + +ROLLBACK; -- cgit v1.2.3