Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vestor-dev committed Nov 25, 2024
1 parent 71a21a8 commit 93c272d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web_app/alembic/versions/1a6fada80369_add_postion_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
- Adds `liquidation_bonus` (Float): Represents any bonus applied during the liquidation process.
- Adds `is_liquidated` (Boolean): Marks whether the position has been liquidated.
- Adds `datetime_liquidation` (DateTime): Stores the timestamp of when the position was liquidated.
These changes enhance the functionality of the `position` table by allowing better tracking of liquidation-related events and attributes.
These changes enhance the functionality of the `position` table by
allowing better tracking of liquidation-related events and attributes.
"""

from alembic import op
Expand All @@ -29,7 +30,7 @@ def upgrade() -> None:
Apply the upgrade.
This function adds four new columns to the `position` table:
- `is_protection`: A boolean field that indicates whether protection is enabled for the position.
- `is_protection`: A boolean field that indicates whether protection is enabled.
- `liquidation_bonus`: A float field to store any bonuses applied during liquidation.
- `is_liquidated`: A boolean field to indicate if the position has been liquidated.
- `datetime_liquidation`: A datetime field to record when the liquidation occurred.
Expand Down

0 comments on commit 93c272d

Please sign in to comment.