-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding cfs_account_id field to non_sufficient_funds, and adding the CSV reconciliation description to non_sufficient_funds
- Loading branch information
1 parent
db88797
commit ba4aed4
Showing
4 changed files
with
55 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""Add cfs_account_id and modify invoice_number to be non-nullable in non_sufficient_funds table | ||
Revision ID: 0b1f9c35b1fb | ||
Revises: fccdab259e05 | ||
Create Date: 2024-01-23 14:26:29.427462 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '0b1f9c35b1fb' | ||
down_revision = 'fccdab259e05' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column('non_sufficient_funds', sa.Column('cfs_account_id', sa.String(length=50), nullable=False, comment='CFS Account number')) | ||
op.alter_column('non_sufficient_funds', 'invoice_number', | ||
existing_type=sa.VARCHAR(length=50), | ||
nullable=False, | ||
existing_comment='CFS Invoice number') | ||
|
||
|
||
def downgrade(): | ||
op.alter_column('non_sufficient_funds', 'invoice_number', | ||
existing_type=sa.VARCHAR(length=50), | ||
nullable=True, | ||
existing_comment='CFS Invoice number') | ||
op.drop_column('non_sufficient_funds', 'cfs_account_id') |
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