MCPcopy
hub / github.com/tortoise/tortoise-orm / database_forward

Method database_forward

tortoise/migrations/operations.py:1232–1241  ·  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

1230 return None
1231
1232 async def database_forward(
1233 self,
1234 app_label: str,
1235 old_state: State,
1236 new_state: State,
1237 state_editor: BaseSchemaEditor | None = None,
1238 ) -> None:
1239 if not state_editor:
1240 return
1241 await self._run_sql(state_editor, self.sql)
1242
1243 async def database_backward(
1244 self,

Callers 1

_run_database_forwardMethod · 0.45

Calls 1

_run_sqlMethod · 0.95

Tested by

no test coverage detected