-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nargis Sultani
committed
Nov 21, 2024
1 parent
6e58904
commit c3afdc6
Showing
7 changed files
with
85 additions
and
56 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
35 changes: 35 additions & 0 deletions
35
db_revisions/versions/ca39ad68af05_undo_revision_6dd77f09fae6.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,35 @@ | ||
"""Undo revision 6dd77f09fae6 | ||
Revision ID: ca39ad68af05 | ||
Revises: 6613e1e2c133 | ||
Create Date: 2024-11-20 14:58:54.366468 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "ca39ad68af05" | ||
down_revision: Union[str, None] = "6613e1e2c133" | ||
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", schema=None) as batch_op: | ||
batch_op.alter_column("name", type_=sa.String(), nullable=False) | ||
batch_op.alter_column("hq_address_street_1", type_=sa.String(), nullable=False) | ||
batch_op.alter_column("hq_address_street_2", type_=sa.String(), nullable=True) | ||
batch_op.alter_column("hq_address_street_3", type_=sa.String(), nullable=True) | ||
batch_op.alter_column("hq_address_street_4", type_=sa.String(), nullable=True) | ||
batch_op.alter_column("hq_address_city", type_=sa.String(), nullable=False) | ||
batch_op.alter_column("parent_legal_name", type_=sa.String(), nullable=True) | ||
batch_op.alter_column("top_holder_legal_name", type_=sa.String(), nullable=True) | ||
|
||
|
||
def downgrade() -> None: | ||
pass |
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