(subparsers: argparse._SubParsersAction)
| 729 | |
| 730 | |
| 731 | def _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 | |
| 744 | def _add_upgrade_parser(subparsers: argparse._SubParsersAction) -> None: |
no outgoing calls
no test coverage detected
searching dependent graphs…