guix-commits
[Top][All Lists]
Advanced

[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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]