mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-16 07:19:13 +08:00
Add migration for index on workflow_request_step_states__workflow_invocation_id
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
"""add index workflow_request_step_states__workflow_invocation_id
|
||||
|
||||
Revision ID: 3a2914d703ca
|
||||
Revises: c39f1de47a04
|
||||
Create Date: 2023-03-07 15:06:55.682273
|
||||
|
||||
"""
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
from galaxy.model.migrations.util import (
|
||||
create_index,
|
||||
drop_index,
|
||||
)
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = "3a2914d703ca"
|
||||
down_revision = "c39f1de47a04"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
table_name = "workflow_request_step_states"
|
||||
columns = ["workflow_invocation_id"]
|
||||
index_name = "ix_workflow_request_step_states_workflow_invocation_id"
|
||||
|
||||
|
||||
def upgrade():
|
||||
create_index(index_name, table_name, columns)
|
||||
|
||||
|
||||
def downgrade():
|
||||
drop_index(index_name, table_name, columns)
|
||||
Reference in New Issue
Block a user