diff options
author | Christopher Baines <mail@cbaines.net> | 2024-09-07 18:45:26 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2024-09-07 18:45:26 +0100 |
commit | 4ecd20b973dd8c38ba9dc139572e2f4b5c9f7e0b (patch) | |
tree | dd10c1fde3123c58db329454e965354425e943c5 /sqitch | |
parent | d73d20c985645a3c7b1998b16175d37c41a85056 (diff) | |
download | data-service-4ecd20b973dd8c38ba9dc139572e2f4b5c9f7e0b.tar data-service-4ecd20b973dd8c38ba9dc139572e2f4b5c9f7e0b.tar.gz |
Add an index on builds.build_server_build_id
As this is used when rendering builds.
Diffstat (limited to 'sqitch')
-rw-r--r-- | sqitch/deploy/build_server_build_id_index.sql | 7 | ||||
-rw-r--r-- | sqitch/revert/build_server_build_id_index.sql | 7 | ||||
-rw-r--r-- | sqitch/sqitch.plan | 1 | ||||
-rw-r--r-- | sqitch/verify/build_server_build_id_index.sql | 7 |
4 files changed, 22 insertions, 0 deletions
diff --git a/sqitch/deploy/build_server_build_id_index.sql b/sqitch/deploy/build_server_build_id_index.sql new file mode 100644 index 0000000..7bd32c6 --- /dev/null +++ b/sqitch/deploy/build_server_build_id_index.sql @@ -0,0 +1,7 @@ +-- Deploy guix-data-service:build_server_build_id_index to pg + +BEGIN; + +CREATE INDEX builds_build_server_build_id ON builds (build_server_build_id); + +COMMIT; diff --git a/sqitch/revert/build_server_build_id_index.sql b/sqitch/revert/build_server_build_id_index.sql new file mode 100644 index 0000000..2d30c11 --- /dev/null +++ b/sqitch/revert/build_server_build_id_index.sql @@ -0,0 +1,7 @@ +-- Revert guix-data-service:build_server_build_id_index from pg + +BEGIN; + +-- XXX Add DDLs here. + +COMMIT; diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan index 14232e3..33d9b04 100644 --- a/sqitch/sqitch.plan +++ b/sqitch/sqitch.plan @@ -98,3 +98,4 @@ cascade_nar_foreign_keys 2023-08-01T09:42:33Z Chris <chris@felis> # Make it easi nar_indexes 2023-08-01T11:37:35Z Chris <chris@felis> # Add nar related indexes git_repositories_poll_interval 2023-10-08T20:36:09Z Chris <chris@felis> # Add git_repositories.poll_interval git_repositories_job_priority 2024-03-07T09:39:27Z Chris <chris@felis> # Add git_repositories.job_priority +build_server_build_id_index 2024-09-07T17:42:28Z Chris <chris@felis> # Add index on builds.build_server_build_id diff --git a/sqitch/verify/build_server_build_id_index.sql b/sqitch/verify/build_server_build_id_index.sql new file mode 100644 index 0000000..28eceb2 --- /dev/null +++ b/sqitch/verify/build_server_build_id_index.sql @@ -0,0 +1,7 @@ +-- Verify guix-data-service:build_server_build_id_index on pg + +BEGIN; + +-- XXX Add verifications here. + +ROLLBACK; |