MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / forwards_plan

Method forwards_plan

tortoise/migrations/graph.py:129–132  ·  view source on GitHub ↗
(self, target: MigrationKey)

Source from the content-addressed store, hash-verified

127 return sorted(nodes)
128
129 def forwards_plan(self, target: MigrationKey) -> list[MigrationKey]:
130 if target not in self.nodes:
131 raise ValueError(f"Unknown migration target {target}")
132 return self._iterative_dfs(self.node_map[target], forwards=True)
133
134 def backwards_plan(self, target: MigrationKey) -> list[MigrationKey]:
135 if target not in self.nodes:

Callers 6

_full_planMethod · 0.80
_forward_planMethod · 0.80
_full_planMethod · 0.80
test_loader_builds_graphFunction · 0.80

Calls 1

_iterative_dfsMethod · 0.95

Tested by 3

test_loader_builds_graphFunction · 0.64