From e9c50f75b12a06137c81d45f80dd162db22115d4 Mon Sep 17 00:00:00 2001 From: ameye Date: Sat, 10 May 2025 08:55:38 -0400 Subject: [PATCH] disburse migration --- ...e_migration_on_sat_may_10_12_54_52_utc_.py | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 migrations/versions/565bc3d0ba6e_migration_on_sat_may_10_12_54_52_utc_.py diff --git a/migrations/versions/565bc3d0ba6e_migration_on_sat_may_10_12_54_52_utc_.py b/migrations/versions/565bc3d0ba6e_migration_on_sat_may_10_12_54_52_utc_.py new file mode 100644 index 0000000..91895f2 --- /dev/null +++ b/migrations/versions/565bc3d0ba6e_migration_on_sat_may_10_12_54_52_utc_.py @@ -0,0 +1,34 @@ +"""Migration on Sat May 10 12:54:52 UTC 2025 + +Revision ID: 565bc3d0ba6e +Revises: 173ea45db189 +Create Date: 2025-05-10 12:54:56.683215 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '565bc3d0ba6e' +down_revision = '173ea45db189' +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_date', sa.DateTime(), nullable=True)) + batch_op.add_column(sa.Column('disburse_verify', sa.DateTime(), 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('disburse_verify') + batch_op.drop_column('disburse_date') + + # ### end Alembic commands ###