[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/18: Make build_servers.id just generated by default
From: |
Christopher Baines |
Subject: |
18/18: Make build_servers.id just generated by default |
Date: |
Mon, 16 Dec 2024 04:02:43 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit 62d6b5901331ad5f78ac65a8a9cb5410b60942cb
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sun Dec 15 20:54:11 2024 +0000
Make build_servers.id just generated by default
As to make it easier to set explicitly.
---
sqitch/deploy/alter_build_servers_id_default.sql | 13 +++++++++++++
sqitch/revert/alter_build_servers_id_default.sql | 7 +++++++
sqitch/sqitch.plan | 1 +
sqitch/verify/alter_build_servers_id_default.sql | 7 +++++++
4 files changed, 28 insertions(+)
diff --git a/sqitch/deploy/alter_build_servers_id_default.sql
b/sqitch/deploy/alter_build_servers_id_default.sql
new file mode 100644
index 0000000..7d4b8c6
--- /dev/null
+++ b/sqitch/deploy/alter_build_servers_id_default.sql
@@ -0,0 +1,13 @@
+-- Deploy guix-data-service:alter_build_servers_id_default to pg
+
+BEGIN;
+
+ALTER TABLE build_servers
+ ALTER COLUMN id
+ DROP identity;
+
+ALTER TABLE build_servers
+ ALTER COLUMN id
+ ADD generated by default as identity;
+
+COMMIT;
diff --git a/sqitch/revert/alter_build_servers_id_default.sql
b/sqitch/revert/alter_build_servers_id_default.sql
new file mode 100644
index 0000000..eddb3d1
--- /dev/null
+++ b/sqitch/revert/alter_build_servers_id_default.sql
@@ -0,0 +1,7 @@
+-- Revert guix-data-service:alter_build_servers_id_default from pg
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan
index 33d9b04..666f6de 100644
--- a/sqitch/sqitch.plan
+++ b/sqitch/sqitch.plan
@@ -99,3 +99,4 @@ 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
+alter_build_servers_id_default 2024-12-15T20:48:51Z Chris <chris@fang> # Alter
build_servers id default
diff --git a/sqitch/verify/alter_build_servers_id_default.sql
b/sqitch/verify/alter_build_servers_id_default.sql
new file mode 100644
index 0000000..55a83ed
--- /dev/null
+++ b/sqitch/verify/alter_build_servers_id_default.sql
@@ -0,0 +1,7 @@
+-- Verify guix-data-service:alter_build_servers_id_default on pg
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;
- 10/18: Fix wrong number of values from channel-derivations-by-system->guix-store-item, (continued)
- 10/18: Fix wrong number of values from channel-derivations-by-system->guix-store-item, Christopher Baines, 2024/12/16
- 12/18: Fix hash display for formatted derivations, Christopher Baines, 2024/12/16
- 09/18: Rework loading revision data, Christopher Baines, 2024/12/16
- 06/18: Memoize field-can-be-null?, Christopher Baines, 2024/12/16
- 02/18: Move log message, Christopher Baines, 2024/12/16
- 15/18: Add a comment, Christopher Baines, 2024/12/16
- 13/18: Avoid getting the load-new-guix-revision-inserts lock twice, Christopher Baines, 2024/12/16
- 04/18: Use insert-missing-data-and-return-all-ids for locations, Christopher Baines, 2024/12/16
- 14/18: Log differently when using the load-new-guix-revision-inserts lock, Christopher Baines, 2024/12/16
- 05/18: Handle conflicts when inserting lint warning message sets, Christopher Baines, 2024/12/16
- 18/18: Make build_servers.id just generated by default,
Christopher Baines <=
- 11/18: Improve some query formatting, Christopher Baines, 2024/12/16
- 07/18: Handle conflicts in insert-missing-data-and-return-all-ids, Christopher Baines, 2024/12/16
- 08/18: Improve null handling, Christopher Baines, 2024/12/16
- 03/18: Add in call-with-worker-thread to try to avoid sort problems, Christopher Baines, 2024/12/16
- 17/18: Add utility functions for configuring the database, Christopher Baines, 2024/12/16
- 16/18: Use knots, Christopher Baines, 2024/12/16
- 01/18: Don't lookup #f in the hash table, Christopher Baines, 2024/12/16