Skip to content

Commit e8e5e0f

Browse files
committed
Add migration: drop job.params column
1 parent a21be74 commit e8e5e0f

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+
"""Drop Job.params column
2+
3+
Revision ID: a5c5455b849a
4+
Revises: e382f8eb5e12
5+
Create Date: 2025-10-15 16:13:14.778789
6+
7+
"""
8+
9+
from sqlalchemy import Column
10+
11+
from galaxy.model.custom_types import TrimmedString
12+
from galaxy.model.migrations.util import (
13+
add_column,
14+
drop_column,
15+
)
16+
17+
# revision identifiers, used by Alembic.
18+
revision = "a5c5455b849a"
19+
down_revision = "e382f8eb5e12"
20+
branch_labels = None
21+
depends_on = None
22+
23+
table_name = "job"
24+
column_name = "params"
25+
26+
27+
def upgrade():
28+
drop_column(table_name, column_name)
29+
30+
31+
def downgrade():
32+
add_column(table_name, Column(column_name, TrimmedString(255)))

0 commit comments

Comments
 (0)