Bump telethon-session-sqlalchemy version

This commit is contained in:
Tulir Asokan
2018-04-30 17:40:07 +03:00
parent 1e0f2c72b5
commit f7dfbbf3f4
2 changed files with 35 additions and 1 deletions
@@ -0,0 +1,34 @@
"""Add telethon update state table
Revision ID: eeaf0dae87ce
Revises: 1fa46383a9d3
Create Date: 2018-04-30 17:30:59.610885
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'eeaf0dae87ce'
down_revision = '1fa46383a9d3'
branch_labels = None
depends_on = None
def upgrade():
with op.batch_alter_table("telethon_entities") as batch_op:
batch_op.alter_column('phone', existing_type=sa.Integer, type_=sa.BigInteger)
op.create_table('telethon_update_state',
sa.Column('session_id', sa.String, nullable=False),
sa.Column('entity_id', sa.Integer, nullable=False),
sa.Column('pts', sa.Integer, nullable=True),
sa.Column('qts', sa.Integer, nullable=True),
sa.Column('date', sa.Integer, nullable=True),
sa.Column('seq', sa.Integer, nullable=True),
sa.PrimaryKeyConstraint('session_id', 'entity_id'))
def downgrade():
with op.batch_alter_table("telethon_entities") as batch_op:
batch_op.alter_column('phone', existing_type=sa.BigInteger, type_=sa.Integer)
op.drop_table('telethon_update_state')
+1 -1
View File
@@ -34,7 +34,7 @@ setuptools.setup(
"future-fstrings>=0.4.2",
"python-magic>=0.4.15,<0.5",
"telethon-aio==0.18.3" if sys.version_info >= (3, 6) else "telethon-aio-git",
"telethon-session-sqlalchemy>=0.1.2,<0.2",
"telethon-session-sqlalchemy>=0.1.2,<0.3",
],
dependency_links=[
"https://github.com/tulir/telethon-asyncio/tarball/bcdc4d77ea6edd6049497bac9074d0ad4277d1cc#egg=telethon-aio-git-0.18.3+1"