invoices, order handling, db updates

This commit is contained in:
2026-02-14 23:09:21 +07:00
parent a3aaafd7ac
commit 50b1a8f80c
28 changed files with 508 additions and 44 deletions

View File

@@ -0,0 +1,44 @@
"""invoice id -> text fs
Revision ID: 536f700c6d2b
Revises: f7372a4db67d
Create Date: 2026-02-14 22:54:39.201321
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = "536f700c6d2b"
down_revision: Union[str, Sequence[str], None] = "f7372a4db67d"
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.INTEGER(),
type_=sa.String(),
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.String(),
type_=sa.INTEGER(),
existing_nullable=True,
)
# ### end Alembic commands ###