Add a title search parameter to workflows endpoint, add index to work… (#1638)

Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
Shuchang Zheng
2025-01-25 02:59:02 +08:00
committed by GitHub
parent 5c37ebbb9e
commit ef93ad65d3
5 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
"""Add index to org_id and title in workflows table
Revision ID: 3a37869686bd
Revises: 13e4af5c975c
Create Date: 2025-01-24 18:55:13.047159+00:00
"""
from typing import Sequence, Union
from alembic import op
# revision identifiers, used by Alembic.
revision: str = "3a37869686bd"
down_revision: Union[str, None] = "13e4af5c975c"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.create_index("organization_id_title_idx", "workflows", ["organization_id", "title"], unique=False)
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index("organization_id_title_idx", table_name="workflows")
# ### end Alembic commands ###