-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #306 from open-contracting/304-fi-default-preaprov…
…al-message feat: add default_pre_approval_message to lender
- Loading branch information
Showing
4 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
migrations/versions/1d633984e7c1_lender_default_message.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"""lender default message | ||
Revision ID: 1d633984e7c1 | ||
Revises: 63f2125bb242 | ||
Create Date: 2024-07-08 14:41:07.483650 | ||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel # added | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "1d633984e7c1" | ||
down_revision = "63f2125bb242" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.add_column( | ||
"lender", | ||
sa.Column( | ||
"default_pre_approval_message", | ||
sqlmodel.sql.sqltypes.AutoString(), | ||
nullable=True, | ||
server_default="", | ||
), | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_column("lender", "default_pre_approval_message") |