Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
yolile committed Oct 17, 2024
1 parent d75a9eb commit 7b62d7b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions migrations/versions/8cc5c33573f4_add_external_onboarding_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,21 @@ def upgrade() -> None:
sa.Column(
"external_onboarding_url",
sqlmodel.sql.sqltypes.AutoString(),
nullable=True,
nullable=False,
server_default="",
),
)
op.drop_column("lender", "default_pre_approval_message")
# ### end Alembic commands ###


def downgrade() -> None:
op.add_column(
"lender", sa.Column("default_pre_approval_message", sa.VARCHAR(), autoincrement=False, nullable=False)
"lender",
sa.Column(
"default_pre_approval_message",
sqlmodel.sql.sqltypes.AutoString(),
nullable=True,
server_default="",
),
)
op.drop_column("lender", "external_onboarding_url")

0 comments on commit 7b62d7b

Please sign in to comment.