mirror of
https://github.com/olegvodyanov/docbot.git
synced 2026-02-02 02:45:46 +03:00
33 lines
903 B
Python
33 lines
903 B
Python
"""add consultation price
|
|
|
|
Revision ID: d252e6046fda
|
|
Revises: 59f05a12ab61
|
|
Create Date: 2025-12-20 22:44:51.998668
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = 'd252e6046fda'
|
|
down_revision: Union[str, None] = '59f05a12ab61'
|
|
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('doctors', sa.Column('consultation_price', sa.Numeric(precision=12, scale=2), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
"""Downgrade schema."""
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('doctors', 'consultation_price')
|
|
# ### end Alembic commands ###
|