From 3c7b0c12869a0ef52bdaab1a0fb12e8b4e5287a1 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Mon, 21 Oct 2024 09:59:13 -0400 Subject: [PATCH] Set server default for non-nullable public column --- .../a99a5b52ccb8_add_workflow_source_and_workflow_source_.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/model/migrations/alembic/versions_gxy/a99a5b52ccb8_add_workflow_source_and_workflow_source_.py b/lib/galaxy/model/migrations/alembic/versions_gxy/a99a5b52ccb8_add_workflow_source_and_workflow_source_.py index 9f5dbf05cf99..275f11df8f8c 100644 --- a/lib/galaxy/model/migrations/alembic/versions_gxy/a99a5b52ccb8_add_workflow_source_and_workflow_source_.py +++ b/lib/galaxy/model/migrations/alembic/versions_gxy/a99a5b52ccb8_add_workflow_source_and_workflow_source_.py @@ -34,8 +34,8 @@ def upgrade(): with transaction(): add_column(workflow_table_name, sa.Column("workflow_source", sa.String(255), nullable=True)) add_column(workflow_table_name, sa.Column("workflow_source_type", sa.String(255), nullable=True)) - add_column(workflow_table_name, sa.Column("public", sa.Boolean, nullable=False)) - add_column(tool_table_name, sa.Column("public", sa.Boolean, nullable=False)) + add_column(workflow_table_name, sa.Column("public", sa.Boolean, nullable=False, server_default=sa.false())) + add_column(tool_table_name, sa.Column("public", sa.Boolean, nullable=False, server_default=sa.false())) def downgrade():