forked from DigiFi/digifi-BankToProductCore
1795db35be
This reverts commit 8bb5ce69e2.
47 lines
1.6 KiB
Python
47 lines
1.6 KiB
Python
"""empty message
|
|
|
|
Revision ID: b54422fb31e0
|
|
Revises: 0acd553309a1
|
|
Create Date: 2025-06-16 12:24:09.159498
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'b54422fb31e0'
|
|
down_revision = '0acd553309a1'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('repayments_data', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('fbn_transaction_id', sa.String(length=50), nullable=True))
|
|
batch_op.add_column(sa.Column('customer_id', sa.String(length=50), nullable=True))
|
|
batch_op.add_column(sa.Column('account_id', sa.String(length=50), nullable=True))
|
|
batch_op.add_column(sa.Column('repayment_amount', sa.Float(), nullable=True))
|
|
batch_op.add_column(sa.Column('amount_collected', sa.Float(), nullable=True))
|
|
|
|
with op.batch_alter_table('transactions', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('phone_number', sa.String(length=50), nullable=True))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('transactions', schema=None) as batch_op:
|
|
batch_op.drop_column('phone_number')
|
|
|
|
with op.batch_alter_table('repayments_data', schema=None) as batch_op:
|
|
batch_op.drop_column('amount_collected')
|
|
batch_op.drop_column('repayment_amount')
|
|
batch_op.drop_column('account_id')
|
|
batch_op.drop_column('customer_id')
|
|
batch_op.drop_column('fbn_transaction_id')
|
|
|
|
# ### end Alembic commands ###
|