Удалить alembic/versions/2b9572b49ecd_added_side_for_user_auto_trading.py
This commit is contained in:
@@ -1,34 +0,0 @@
|
|||||||
"""Added side for user auto trading
|
|
||||||
|
|
||||||
Revision ID: 2b9572b49ecd
|
|
||||||
Revises: ef342b38e17b
|
|
||||||
Create Date: 2025-10-02 17:21:20.904797
|
|
||||||
|
|
||||||
"""
|
|
||||||
from typing import Sequence, Union
|
|
||||||
|
|
||||||
from alembic import op
|
|
||||||
import sqlalchemy as sa
|
|
||||||
|
|
||||||
|
|
||||||
# revision identifiers, used by Alembic.
|
|
||||||
revision: str = '2b9572b49ecd'
|
|
||||||
down_revision: Union[str, Sequence[str], None] = 'ef342b38e17b'
|
|
||||||
branch_labels: Union[str, Sequence[str], None] = None
|
|
||||||
depends_on: Union[str, Sequence[str], None] = None
|
|
||||||
|
|
||||||
|
|
||||||
def upgrade() -> None:
|
|
||||||
"""Upgrade schema."""
|
|
||||||
# ### commands auto generated by Alembic - please adjust! ###
|
|
||||||
op.add_column('user_auto_trading', sa.Column('side', sa.String(), nullable=True))
|
|
||||||
op.drop_constraint(op.f('uq_user_auto_trading_symbol'), 'user_auto_trading', type_='unique')
|
|
||||||
# ### end Alembic commands ###
|
|
||||||
|
|
||||||
|
|
||||||
def downgrade() -> None:
|
|
||||||
"""Downgrade schema."""
|
|
||||||
# ### commands auto generated by Alembic - please adjust! ###
|
|
||||||
op.create_unique_constraint(op.f('uq_user_auto_trading_symbol'), 'user_auto_trading', ['user_id', 'symbol'], postgresql_nulls_not_distinct=False)
|
|
||||||
op.drop_column('user_auto_trading', 'side')
|
|
||||||
# ### end Alembic commands ###
|
|
Reference in New Issue
Block a user