zhaoqingang
2024-12-13 f2c43713b16e821f4a1ae97804c60f18734d5f6a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""menu table update
 
Revision ID: ba24e02a6610
Revises: ef06c24632a7
Create Date: 2024-12-13 17:19:35.020328
 
"""
from typing import Sequence, Union
 
from alembic import op
import sqlalchemy as sa
 
 
# revision identifiers, used by Alembic.
revision: str = 'ba24e02a6610'
down_revision: Union[str, None] = 'ef06c24632a7'
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('menu_capacity', sa.Column('chat_id', sa.String(length=36), nullable=True))
    op.add_column('menu_capacity', sa.Column('chat_type', sa.String(length=36), nullable=True))
    # ### end Alembic commands ###
 
 
def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('menu_capacity', 'chat_type')
    op.drop_column('menu_capacity', 'chat_id')
    # ### end Alembic commands ###