Skip to content

Commit

Permalink
Set server default for non-nullable public column
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Oct 21, 2024
1 parent 2565bb7 commit 3c7b0c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 3c7b0c1

Please sign in to comment.