You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/08/21 14:43:53 UTC

(tooling-trusted-release) branch main updated: Add server defaults for the new workflow SSH key columns

This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git


The following commit(s) were added to refs/heads/main by this push:
     new 1c72a7c  Add server defaults for the new workflow SSH key columns
1c72a7c is described below

commit 1c72a7c3b398e8633261c6137251e16e378d4207
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Thu Aug 21 15:43:37 2025 +0100

    Add server defaults for the new workflow SSH key columns
---
 migrations/versions/0025_2025.08.21_57ca4488.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/migrations/versions/0025_2025.08.21_57ca4488.py b/migrations/versions/0025_2025.08.21_57ca4488.py
index db8441a..9be3a3e 100644
--- a/migrations/versions/0025_2025.08.21_57ca4488.py
+++ b/migrations/versions/0025_2025.08.21_57ca4488.py
@@ -19,9 +19,9 @@ depends_on: str | Sequence[str] | None = None
 
 def upgrade() -> None:
     with op.batch_alter_table("workflowsshkey", schema=None) as batch_op:
-        batch_op.add_column(sa.Column("asf_uid", sa.String(), nullable=False))
-        batch_op.add_column(sa.Column("github_uid", sa.String(), nullable=False))
-        batch_op.add_column(sa.Column("github_nid", sa.Integer(), nullable=False))
+        batch_op.add_column(sa.Column("asf_uid", sa.String(), nullable=False, server_default=""))
+        batch_op.add_column(sa.Column("github_uid", sa.String(), nullable=False, server_default=""))
+        batch_op.add_column(sa.Column("github_nid", sa.Integer(), nullable=False, server_default=sa.text("0")))
         batch_op.create_index(batch_op.f("ix_workflowsshkey_asf_uid"), ["asf_uid"], unique=False)
         batch_op.create_index(batch_op.f("ix_workflowsshkey_github_nid"), ["github_nid"], unique=False)
         batch_op.create_index(batch_op.f("ix_workflowsshkey_github_uid"), ["github_uid"], unique=False)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org