Skip to content

Commit a041116

Browse files
committed
feat: update migration version table name to 'a2a_alembic_version'
1 parent 34f3d76 commit a041116

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/a2a/migrations/env.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ def do_run_migrations(connection: Connection) -> None:
7777
Args:
7878
connection: The SQLAlchemy connection to use for the migrations.
7979
"""
80-
context.configure(connection=connection, target_metadata=target_metadata)
80+
context.configure(
81+
connection=connection,
82+
target_metadata=target_metadata,
83+
version_table='a2a_alembic_version',
84+
)
8185

8286
with context.begin_transaction():
8387
context.run_migrations()

tests/migrations/versions/test_migration_6419d2d130f6.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def test_migration_6419d2d130f6_offline(
277277
assert 'ALTER TABLE tasks ADD COLUMN owner' in captured.out
278278
assert 'ALTER TABLE tasks ADD COLUMN last_updated' in captured.out
279279
assert 'CREATE INDEX idx_tasks_owner_last_updated' in captured.out
280-
assert 'CREATE TABLE alembic_version' in captured.out
280+
assert 'CREATE TABLE a2a_alembic_version' in captured.out
281281
assert (
282282
'ALTER TABLE push_notification_configs ADD COLUMN owner' in captured.out
283283
)
@@ -291,7 +291,7 @@ def test_migration_6419d2d130f6_offline(
291291
tables = {row[0] for row in cursor.fetchall()}
292292
assert 'tasks' in tables
293293
assert 'push_notification_configs' in tables
294-
assert 'alembic_version' not in tables
294+
assert 'a2a_alembic_version' not in tables
295295

296296
# Verify columns were NOT added to tasks
297297
cursor.execute('PRAGMA table_info(tasks)')

0 commit comments

Comments
 (0)