Skip to content

Commit 12a86ed

Browse files
authored
Merge pull request #5 from nodestream-proj/fix/migrations
Fix improper use of query object in migrator
2 parents 225ef60 + 8c8e1da commit 12a86ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nodestream_plugin_neo4j/migrator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,10 @@ async def mark_migration_as_executed(self, migration: Migration) -> None:
167167
await self.database_connection.execute(query)
168168

169169
async def get_completed_migrations(self, graph: MigrationGraph) -> List[Migration]:
170+
query = Query.from_statement(LIST_MIGRATIONS_QUERY)
170171
return [
171172
graph.get_migration(record["name"])
172-
for record in await self.database_connection.execute(LIST_MIGRATIONS_QUERY)
173+
for record in await self.database_connection.execute(query)
173174
]
174175

175176
async def execute_create_node_type(self, operation: CreateNodeType) -> None:

0 commit comments

Comments
 (0)