-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from a1d4r/develop
Deploy: Fix telegram ID
- Loading branch information
Showing
4 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
migrations/versions/2024_10_26_1257-249977e15076_make_telegram_id_int64.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""Make telegram id int64 | ||
|
||
Revision ID: 249977e15076 | ||
Revises: 272acf3925ed | ||
Create Date: 2024-10-26 12:57:00.043010 | ||
|
||
""" | ||
|
||
from collections.abc import Sequence | ||
|
||
import sqlalchemy as sa | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "249977e15076" | ||
down_revision: str | None = "272acf3925ed" | ||
branch_labels: str | Sequence[str] | None = None | ||
depends_on: str | Sequence[str] | None = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.alter_column( | ||
"users", "tg_id", existing_type=sa.INTEGER(), type_=sa.BigInteger(), existing_nullable=False | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.alter_column( | ||
"users", "tg_id", existing_type=sa.BigInteger(), type_=sa.INTEGER(), existing_nullable=False | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters