Skip to content

Commit e4b85b8

Browse files
committed
Update the graph version if no migrations need to be applied
1 parent 84aed40 commit e4b85b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/infrahub/core/branch/tasks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ async def migrate_branch(branch: str, context: InfrahubContext, send_events: boo
7676
migration_runner = MigrationRunner(branch=obj)
7777
if not migration_runner.has_migrations():
7878
log.info(f"No migrations detected for branch '{obj.name}'")
79+
obj.graph_version = GRAPH_VERSION
80+
await obj.save(db=db)
7981
return
8082

8183
# Branch status will remain as so if the migration process fails

0 commit comments

Comments
 (0)