This commit is contained in:
xds
2026-03-17 10:51:01 +03:00
parent e98ef3eae3
commit 195f96bb20
7 changed files with 370 additions and 51 deletions

View File

@@ -0,0 +1,30 @@
"""add max_hr to riders
Revision ID: 61f691fee44a
Revises: ab0f6e2939d3
Create Date: 2026-03-17 10:40:39.156732
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = '61f691fee44a'
down_revision: Union[str, None] = 'ab0f6e2939d3'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('riders', sa.Column('max_hr', sa.Integer(), nullable=True))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('riders', 'max_hr')
# ### end Alembic commands ###