[fix]: migration
This commit is contained in:
@@ -1,32 +1,31 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 48c62b4da905
|
||||
Revision ID: 05b5494ad406
|
||||
Revises: 33e09efd85e3
|
||||
Create Date: 2025-07-06 09:28:26.264927
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '48c62b4da905'
|
||||
down_revision = '33e09efd85e3'
|
||||
revision = "05b5494ad406"
|
||||
down_revision = "33e09efd85e3"
|
||||
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('balance', sa.Float(), nullable=True))
|
||||
op.add_column("loans", sa.Column("balance", sa.Float(), nullable=True))
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
# ### 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('balance')
|
||||
|
||||
op.drop_column("loans", "balance")
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user