Fix workers count

This commit is contained in:
2022-01-22 22:25:39 +03:00
parent 2f222ee55d
commit 924e5738a1
4 changed files with 16 additions and 5 deletions

View File

@@ -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 ###