39 lines
857 B
Python
39 lines
857 B
Python
"""expand telegram_id precision on stars invoices
|
|
|
|
Revision ID: c2d4e6f8a1b2
|
|
Revises: b1f2d3c4a5b6
|
|
Create Date: 2025-10-17 00:00:00.000000
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = 'c2d4e6f8a1b2'
|
|
down_revision: Union[str, None] = 'b1f2d3c4a5b6'
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.alter_column(
|
|
'stars_invoices',
|
|
'telegram_id',
|
|
existing_type=sa.Integer(),
|
|
type_=sa.BigInteger(),
|
|
existing_nullable=True,
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.alter_column(
|
|
'stars_invoices',
|
|
'telegram_id',
|
|
existing_type=sa.BigInteger(),
|
|
type_=sa.Integer(),
|
|
existing_nullable=True,
|
|
)
|