aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sqitch/deploy/build_server_build_id_index.sql7
-rw-r--r--sqitch/revert/build_server_build_id_index.sql7
-rw-r--r--sqitch/sqitch.plan1
-rw-r--r--sqitch/verify/build_server_build_id_index.sql7
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;