Skip to content

Commit 52bc383

Browse files
committed
Move init back to migration to avoid circular deps
1 parent b7c3123 commit 52bc383

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

backend/infrahub/core/migrations/shared.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
internal_schema,
1818
)
1919
from infrahub.core.timestamp import Timestamp
20-
from infrahub.lock import initialize_lock
2120

2221
from .query import MigrationBaseQuery # noqa: TC001
2322

@@ -272,12 +271,6 @@ async def execute_against_branch(self, db: InfrahubDatabase, branch: Branch) ->
272271
raise NotImplementedError()
273272

274273
async def execute_against_branches(self, db: InfrahubDatabase, branches: Sequence[Branch]) -> MigrationResult:
275-
# Circular import
276-
from infrahub.core.initialization import initialization
277-
278-
initialize_lock()
279-
await initialization(db=db)
280-
281274
result = MigrationResult()
282275

283276
for branch in branches:

0 commit comments

Comments
 (0)