45 lines
1.1 KiB
Python
45 lines
1.1 KiB
Python
"""invoice id -> text
|
|
|
|
Revision ID: f7372a4db67d
|
|
Revises: ac19c319304a
|
|
Create Date: 2026-02-14 22:54:03.047715
|
|
|
|
"""
|
|
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = "f7372a4db67d"
|
|
down_revision: Union[str, Sequence[str], None] = "ac19c319304a"
|
|
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(
|
|
"invoices",
|
|
"inline_message_id",
|
|
existing_type=sa.BIGINT(),
|
|
type_=sa.Integer(),
|
|
existing_nullable=True,
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
"""Downgrade schema."""
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.alter_column(
|
|
"invoices",
|
|
"inline_message_id",
|
|
existing_type=sa.Integer(),
|
|
type_=sa.BIGINT(),
|
|
existing_nullable=True,
|
|
)
|
|
# ### end Alembic commands ###
|