MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / database_forward

Method database_forward

tortoise/migrations/operations.py:1104–1115  ·  view source on GitHub ↗
(
        self,
        app_label: str,
        old_state: State,
        new_state: State,
        state_editor: BaseSchemaEditor | None = None,
    )

Source from the content-addressed store, hash-verified

1102 return None
1103
1104 async def database_forward(
1105 self,
1106 app_label: str,
1107 old_state: State,
1108 new_state: State,
1109 state_editor: BaseSchemaEditor | None = None,
1110 ) -> None:
1111 if not state_editor:
1112 return
1113 result = self.code(old_state.apps, state_editor)
1114 if inspect.isawaitable(result):
1115 await result
1116
1117 async def database_backward(
1118 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected