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/09/04 18:49:36 UTC

(tooling-trusted-release) branch main updated (bd55272 -> 4a527dd)

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

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


 discard bd55272  Add server defaults to the workflow fields migration
 discard c2479c8  Add a schema mirgation for the new workflow fields
     new 00c3b0e  Add a schema migration for the new workflow fields
     new 4a527dd  Add server defaults to the workflow fields migration

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (bd55272)
            \
             N -- N -- N   refs/heads/main (4a527dd)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:


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


(tooling-trusted-release) 01/02: Add a schema migration for the new workflow fields

Posted by sb...@apache.org.
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

commit 00c3b0e3e25a85f0e435ca23acff231d709f0273
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Thu Sep 4 19:24:53 2025 +0100

    Add a schema migration for the new workflow fields
---
 migrations/versions/0026_2025.09.04_eb02c4d9.py | 35 +++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/migrations/versions/0026_2025.09.04_eb02c4d9.py b/migrations/versions/0026_2025.09.04_eb02c4d9.py
new file mode 100644
index 0000000..54e3c81
--- /dev/null
+++ b/migrations/versions/0026_2025.09.04_eb02c4d9.py
@@ -0,0 +1,35 @@
+"""Add workflow release policy fields
+
+Revision ID: 0026_2025.09.04_eb02c4d9
+Revises: 0025_2025.08.21_57ca4488
+Create Date: 2025-09-04 18:23:41.821738+00:00
+"""
+
+from collections.abc import Sequence
+
+import sqlalchemy as sa
+from alembic import op
+
+# Revision identifiers, used by Alembic
+revision: str = "0026_2025.09.04_eb02c4d9"
+down_revision: str | None = "0025_2025.08.21_57ca4488"
+branch_labels: str | Sequence[str] | None = None
+depends_on: str | Sequence[str] | None = None
+
+
+def upgrade() -> None:
+    with op.batch_alter_table("releasepolicy", schema=None) as batch_op:
+        batch_op.add_column(sa.Column("github_compose_workflow_path", sa.String(), nullable=False))
+        batch_op.add_column(sa.Column("github_vote_workflow_path", sa.String(), nullable=False))
+        batch_op.add_column(sa.Column("github_finish_workflow_path", sa.String(), nullable=False))
+        batch_op.drop_column("github_workflow_path")
+
+
+def downgrade() -> None:
+    with op.batch_alter_table("releasepolicy", schema=None) as batch_op:
+        batch_op.add_column(
+            sa.Column("github_workflow_path", sa.VARCHAR(), server_default=sa.text("('')"), nullable=False)
+        )
+        batch_op.drop_column("github_finish_workflow_path")
+        batch_op.drop_column("github_vote_workflow_path")
+        batch_op.drop_column("github_compose_workflow_path")


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


(tooling-trusted-release) 02/02: Add server defaults to the workflow fields migration

Posted by sb...@apache.org.
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

commit 4a527dd9ee07981e2602f946063cbcdcda872f75
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Thu Sep 4 19:43:55 2025 +0100

    Add server defaults to the workflow fields migration
---
 migrations/versions/0026_2025.09.04_eb02c4d9.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/migrations/versions/0026_2025.09.04_eb02c4d9.py b/migrations/versions/0026_2025.09.04_eb02c4d9.py
index 54e3c81..380c808 100644
--- a/migrations/versions/0026_2025.09.04_eb02c4d9.py
+++ b/migrations/versions/0026_2025.09.04_eb02c4d9.py
@@ -19,9 +19,9 @@ depends_on: str | Sequence[str] | None = None
 
 def upgrade() -> None:
     with op.batch_alter_table("releasepolicy", schema=None) as batch_op:
-        batch_op.add_column(sa.Column("github_compose_workflow_path", sa.String(), nullable=False))
-        batch_op.add_column(sa.Column("github_vote_workflow_path", sa.String(), nullable=False))
-        batch_op.add_column(sa.Column("github_finish_workflow_path", sa.String(), nullable=False))
+        batch_op.add_column(sa.Column("github_compose_workflow_path", sa.String(), nullable=False, server_default=""))
+        batch_op.add_column(sa.Column("github_vote_workflow_path", sa.String(), nullable=False, server_default=""))
+        batch_op.add_column(sa.Column("github_finish_workflow_path", sa.String(), nullable=False, server_default=""))
         batch_op.drop_column("github_workflow_path")
 
 


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