Skip to content

Commit d162f79

Browse files
committed
Fix alembic down revision and lint errors
1 parent edd0026 commit d162f79

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

lib/galaxy/model/migrations/alembic/versions_gxy/724237cc4cf0_migrate_custos_to_psa_tokens.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
"""migrate custos to psa tokens
22
33
Revision ID: 724237cc4cf0
4-
Revises: a5c5455b849a
4+
Revises: 1d1d7bf6ac02
55
Create Date: 2025-11-03 15:22:13.111461
66
77
"""
88

9-
import json
109
from datetime import datetime
1110

1211
from alembic import op
@@ -21,7 +20,6 @@
2120
Text,
2221
VARCHAR,
2322
)
24-
from sqlalchemy.orm import Session
2523

2624
from galaxy.model.custom_types import MutableJSONType
2725
from galaxy.model.migrations.util import (
@@ -30,7 +28,7 @@
3028

3129
# revision identifiers, used by Alembic.
3230
revision = "724237cc4cf0"
33-
down_revision = "a5c5455b849a"
31+
down_revision = "1d1d7bf6ac02"
3432
branch_labels = None
3533
depends_on = None
3634

@@ -179,7 +177,6 @@ def upgrade():
179177
"""
180178
with transaction():
181179
connection = op.get_bind()
182-
session = Session(bind=connection)
183180

184181
# Get table definitions
185182
custos_table = get_custos_table(connection)

test/unit/data/model/test_migrate_custos_to_psa.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# Import the core migration function
99
# We need to use importlib since the filename has a revision prefix
1010
import importlib.util
11-
import json
1211
from datetime import (
1312
datetime,
1413
timedelta,
@@ -21,7 +20,6 @@
2120
create_engine,
2221
DateTime,
2322
Integer,
24-
select,
2523
String,
2624
Text,
2725
VARCHAR,

0 commit comments

Comments
 (0)