From 71a21a816bf6856847bfb0d9d9a9cdce36a7c819 Mon Sep 17 00:00:00 2001 From: vestor-dev <182824106+vestor-dev@users.noreply.github.com> Date: Mon, 25 Nov 2024 07:47:41 +0000 Subject: [PATCH] fmt --- .../1a6fada80369_add_postion_columns.py | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/web_app/alembic/versions/1a6fada80369_add_postion_columns.py b/web_app/alembic/versions/1a6fada80369_add_postion_columns.py index efd7e709..3f039b36 100644 --- a/web_app/alembic/versions/1a6fada80369_add_postion_columns.py +++ b/web_app/alembic/versions/1a6fada80369_add_postion_columns.py @@ -18,8 +18,8 @@ # Revision identifiers, used by Alembic. -revision = '1a6fada80369' -down_revision = '0537a9a5e841' +revision = "1a6fada80369" +down_revision = "0537a9a5e841" branch_labels = None depends_on = None @@ -34,10 +34,12 @@ def upgrade() -> None: - `is_liquidated`: A boolean field to indicate if the position has been liquidated. - `datetime_liquidation`: A datetime field to record when the liquidation occurred. """ - op.add_column('position', sa.Column('is_protection', sa.Boolean(), nullable=True)) - op.add_column('position', sa.Column('liquidation_bonus', sa.Float(), nullable=True)) - op.add_column('position', sa.Column('is_liquidated', sa.Boolean(), nullable=True)) - op.add_column('position', sa.Column('datetime_liquidation', sa.DateTime(), nullable=False)) + op.add_column("position", sa.Column("is_protection", sa.Boolean(), nullable=True)) + op.add_column("position", sa.Column("liquidation_bonus", sa.Float(), nullable=True)) + op.add_column("position", sa.Column("is_liquidated", sa.Boolean(), nullable=True)) + op.add_column( + "position", sa.Column("datetime_liquidation", sa.DateTime(), nullable=False) + ) def downgrade() -> None: @@ -50,7 +52,7 @@ def downgrade() -> None: - `is_liquidated` - `datetime_liquidation` """ - op.drop_column('position', 'datetime_liquidation') - op.drop_column('position', 'is_liquidated') - op.drop_column('position', 'liquidation_bonus') - op.drop_column('position', 'is_protection') + op.drop_column("position", "datetime_liquidation") + op.drop_column("position", "is_liquidated") + op.drop_column("position", "liquidation_bonus") + op.drop_column("position", "is_protection")