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

Function _add_migrate_parser

tortoise/cli/cli.py:731–741  ·  view source on GitHub ↗
(subparsers: argparse._SubParsersAction)

Source from the content-addressed store, hash-verified

729
730
731def _add_migrate_parser(subparsers: argparse._SubParsersAction) -> None:
732 migrate_parser = subparsers.add_parser("migrate", help="Apply migrations.")
733 migrate_parser.add_argument("app_label", nargs="?")
734 migrate_parser.add_argument("migration", nargs="?")
735 migrate_parser.add_argument(
736 "--fake", action="store_true", help="Record migrations without executing SQL."
737 )
738 migrate_parser.add_argument(
739 "--dry-run", action="store_true", help="Show what would run without changing DB state."
740 )
741 migrate_parser.set_defaults(func=_run_migrate_cmd)
742
743
744def _add_upgrade_parser(subparsers: argparse._SubParsersAction) -> None:

Callers 1

_build_parserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…