forked from DigiFi/digifi-BankToProductCore
1795db35be
This reverts commit 8bb5ce69e2.
55 lines
2.2 KiB
Python
55 lines
2.2 KiB
Python
"""empty message
|
|
|
|
Revision ID: 45790fd659fb
|
|
Revises: b3a5e10bc77e
|
|
Create Date: 2025-06-04 12:37:48.180736
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '45790fd659fb'
|
|
down_revision = 'b3a5e10bc77e'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('loans', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('disburse_result', sa.String(length=10), nullable=True))
|
|
batch_op.add_column(sa.Column('disburse_description', sa.String(length=100), nullable=True))
|
|
batch_op.add_column(sa.Column('verify_result', sa.String(length=10), nullable=True))
|
|
batch_op.add_column(sa.Column('verify_description', sa.String(length=100), nullable=True))
|
|
|
|
with op.batch_alter_table('repayments', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('repay_date', sa.DateTime(), nullable=True))
|
|
batch_op.add_column(sa.Column('repay_result', sa.String(length=10), nullable=True))
|
|
batch_op.add_column(sa.Column('repay_description', sa.String(length=100), nullable=True))
|
|
batch_op.add_column(sa.Column('verify_date', sa.DateTime(), nullable=True))
|
|
batch_op.add_column(sa.Column('verify_result', sa.String(length=10), nullable=True))
|
|
batch_op.add_column(sa.Column('verify_description', sa.String(length=100), nullable=True))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('repayments', schema=None) as batch_op:
|
|
batch_op.drop_column('verify_description')
|
|
batch_op.drop_column('verify_result')
|
|
batch_op.drop_column('verify_date')
|
|
batch_op.drop_column('repay_description')
|
|
batch_op.drop_column('repay_result')
|
|
batch_op.drop_column('repay_date')
|
|
|
|
with op.batch_alter_table('loans', schema=None) as batch_op:
|
|
batch_op.drop_column('verify_description')
|
|
batch_op.drop_column('verify_result')
|
|
batch_op.drop_column('disburse_description')
|
|
batch_op.drop_column('disburse_result')
|
|
|
|
# ### end Alembic commands ###
|