forked from kodorvan/stcs
Added migrations for the database
This commit is contained in:
38
alembic/versions/42c66cfe8d4e_updated_martingale_factor.py
Normal file
38
alembic/versions/42c66cfe8d4e_updated_martingale_factor.py
Normal file
@@ -0,0 +1,38 @@
|
||||
"""Updated martingale factor
|
||||
|
||||
Revision ID: 42c66cfe8d4e
|
||||
Revises: 45977e9d8558
|
||||
Create Date: 2025-09-22 17:17:39.779979
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = '42c66cfe8d4e'
|
||||
down_revision: Union[str, Sequence[str], None] = '45977e9d8558'
|
||||
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.alter_column('user_additional_settings', 'martingale_factor',
|
||||
existing_type=sa.INTEGER(),
|
||||
type_=sa.Float(),
|
||||
existing_nullable=False)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""Downgrade schema."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.alter_column('user_additional_settings', 'martingale_factor',
|
||||
existing_type=sa.Float(),
|
||||
type_=sa.INTEGER(),
|
||||
existing_nullable=False)
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user