Skip to content

Commit

Permalink
Merge pull request #11237 from camptocamp/set-default-values
Browse files Browse the repository at this point in the history
Add missing default values
  • Loading branch information
sbrunner authored Jul 11, 2024
2 parents a76e64a + e2d793c commit 6daa3d9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ def upgrade() -> None:
op.alter_column(
"oauth2_client", "redirect_uri", existing_type=sa.VARCHAR(), nullable=False, schema=staticschema
)
op.execute(f"UPDATE {staticschema}.oauth2_client SET state_required = true WHERE state_required IS NULL")
op.alter_column(
"oauth2_client", "state_required", existing_type=sa.BOOLEAN(), nullable=False, schema=staticschema
)
op.execute(f"UPDATE {staticschema}.oauth2_client SET pkce_required = true WHERE pkce_required IS NULL")
op.alter_column(
"oauth2_client", "pkce_required", existing_type=sa.BOOLEAN(), nullable=False, schema=staticschema
)
Expand Down

0 comments on commit 6daa3d9

Please sign in to comment.