From 4bd163fb31dbe233ee04bd17614dab3d559f5bc3 Mon Sep 17 00:00:00 2001 From: ameye Date: Sat, 3 May 2025 17:59:17 -0400 Subject: [PATCH] eligible amount migration --- ...igration_on_sat_may_3_21_53_29_utc_2025.py | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 migrations/versions/95a52be203c4_migration_on_sat_may_3_21_53_29_utc_2025.py diff --git a/migrations/versions/95a52be203c4_migration_on_sat_may_3_21_53_29_utc_2025.py b/migrations/versions/95a52be203c4_migration_on_sat_may_3_21_53_29_utc_2025.py new file mode 100644 index 0000000..7a03ceb --- /dev/null +++ b/migrations/versions/95a52be203c4_migration_on_sat_may_3_21_53_29_utc_2025.py @@ -0,0 +1,32 @@ +"""Migration on Sat May 3 21:53:29 UTC 2025 + +Revision ID: 95a52be203c4 +Revises: 38acee611d55 +Create Date: 2025-05-03 21:53:32.154029 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '95a52be203c4' +down_revision = '38acee611d55' +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('eligible_amount', sa.Float(), nullable=True)) + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table('loans', schema=None) as batch_op: + batch_op.drop_column('eligible_amount') + + # ### end Alembic commands ###