forked from bcgov/sbc-pay
-
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.
24695 - EFT add cas supplier site - backend changes (bcgov#1848)
- Loading branch information
Showing
20 changed files
with
469 additions
and
223 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
38 changes: 38 additions & 0 deletions
38
pay-api/migrations/versions/2024_12_04_4f3a44eeade8_add_eft_cas_supplier_site.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,38 @@ | ||
"""add_eft_cas_supplier_site | ||
Revision ID: 4f3a44eeade8 | ||
Revises: c6f04824d529 | ||
Create Date: 2024-12-04 16:16:39.574734 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
# Note you may see foreign keys with distribution_codes_history | ||
# For disbursement_distribution_code_id, service_fee_distribution_code_id | ||
# Please ignore those lines and don't include in migration. | ||
|
||
revision = '4f3a44eeade8' | ||
down_revision = 'c6f04824d529' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column( | ||
"eft_short_names", sa.Column("cas_supplier_site", sa.String(25), nullable=True) | ||
) | ||
op.add_column( | ||
"eft_short_names_history", sa.Column("cas_supplier_site", sa.String(25), nullable=True) | ||
) | ||
op.add_column( | ||
"eft_refunds", sa.Column("cas_supplier_site", sa.String(25), nullable=False) | ||
) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column("eft_refunds", "cas_supplier_site") | ||
op.drop_column("eft_short_names_history", "cas_supplier_site") | ||
op.drop_column("eft_short_names", "cas_supplier_site") |
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
Oops, something went wrong.