File tree Expand file tree Collapse file tree
tests/migrations/versions Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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)' )
You can’t perform that action at this time.
0 commit comments