Skip to content

Commit 08f3579

Browse files
committed
Migration for job.tool_state.
1 parent 49ed142 commit 08f3579

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
"""Persist validated job internal tool state.
2+
3+
Revision ID: 566b691307a5
4+
Revises: 1d1d7bf6ac02
5+
Create Date: 2025-09-30 04:48:19.727414
6+
7+
"""
8+
9+
from sqlalchemy import Column
10+
11+
from galaxy.model.custom_types import JSONType
12+
from galaxy.model.migrations.util import (
13+
add_column,
14+
drop_column,
15+
)
16+
17+
# revision identifiers, used by Alembic.
18+
revision = "566b691307a5"
19+
down_revision = "1d1d7bf6ac02"
20+
branch_labels = None
21+
depends_on = None
22+
23+
table_name = "job"
24+
column_name = "tool_state"
25+
26+
27+
def upgrade():
28+
add_column(table_name, Column(column_name, JSONType))
29+
30+
31+
def downgrade():
32+
drop_column(table_name, column_name)

0 commit comments

Comments
 (0)