Skip to content

Commit

Permalink
Fixing downgrade for OpenID provider migration (#5205)
Browse files Browse the repository at this point in the history
  • Loading branch information
galvana committed Aug 15, 2024
1 parent f23c41a commit 2445fef
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table(
"openid_provider",
sa.Column("id", sa.String(length=255), nullable=False),
Expand Down Expand Up @@ -66,12 +65,10 @@ def upgrade():
["identifier"],
unique=True,
)
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index(op.f("ix_openid_provider_identifier"), table_name="openid_provider")
op.drop_index(op.f("ix_openid_provider_id"), table_name="openid_provider")
op.drop_table("openid_provider")
# ### end Alembic commands ###
op.execute("DROP TYPE providerenum")

0 comments on commit 2445fef

Please sign in to comment.