mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Fix workers count
This commit is contained in:
@@ -29,10 +29,21 @@ def upgrade():
|
||||
"object_id", "object_type", name="uc_cached_files_object_id_object_type"
|
||||
),
|
||||
)
|
||||
op.create_index(
|
||||
op.f("ix_cached_files_object_id"), "cached_files", ["object_id"], unique=False
|
||||
)
|
||||
op.create_index(
|
||||
op.f("ix_cached_files_object_type"),
|
||||
"cached_files",
|
||||
["object_type"],
|
||||
unique=False,
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table("cached_files")
|
||||
op.drop_index("ix_cached_files_object_id")
|
||||
op.drop_index("ix_cached_files_object_type")
|
||||
# ### end Alembic commands ###
|
||||
|
||||
Reference in New Issue
Block a user