-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ticket 133: added optional hq_address_street_3 and hq_address_street_… (
#134) …4 fields to financial_institutions table closes [#133 ](#133) Co-authored-by: Nargis Sultani <nargis.sultani@cfpb.gov>
- Loading branch information
1 parent
91f1fcc
commit 8c7d897
Showing
8 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...ons/versions/2ad66aaf4583_add_hq_address_state_3_and_4_to_financial_institutions_table.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,31 @@ | ||
"""add hq_address_state_3 and hq_address_state_3 fields to financial_institutions table | ||
Revision ID: 2ad66aaf4583 | ||
Revises: d6e4a13fbebd | ||
Create Date: 2024-04-09 00:17:23.263719 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "2ad66aaf4583" | ||
down_revision: Union[str, None] = "d6e4a13fbebd" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
with op.batch_alter_table("financial_institutions") as batch_op: | ||
batch_op.add_column(sa.Column("hq_address_street_3", sa.String, nullable=True)) | ||
batch_op.add_column(sa.Column("hq_address_street_4", sa.String, nullable=True)) | ||
|
||
|
||
def downgrade() -> None: | ||
with op.batch_alter_table("financial_institutions") as batch_op: | ||
batch_op.drop_column("hq_address_street_3") | ||
batch_op.drop_column("hq_address_street_4") |
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
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
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