(subparsers: argparse._SubParsersAction)
| 782 | |
| 783 | |
| 784 | def _add_sqlmigrate_parser(subparsers: argparse._SubParsersAction) -> None: |
| 785 | sqlmigrate_parser = subparsers.add_parser("sqlmigrate", help="Print the SQL for a migration.") |
| 786 | sqlmigrate_parser.add_argument("app_label", nargs="?", help="App label.") |
| 787 | sqlmigrate_parser.add_argument("migration_name", nargs="?", help="Migration name.") |
| 788 | sqlmigrate_parser.add_argument( |
| 789 | "--backward", |
| 790 | action="store_true", |
| 791 | help="Generate SQL to unapply the migration.", |
| 792 | ) |
| 793 | sqlmigrate_parser.set_defaults(func=_run_sqlmigrate) |
| 794 | |
| 795 | |
| 796 | def _build_parser() -> argparse.ArgumentParser: |
no outgoing calls
no test coverage detected
searching dependent graphs…