Skip to content

Commit

Permalink
Change the drop_schema tool to use physical config files
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed Apr 15, 2024
1 parent 835c5b2 commit a2f0242
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/brad/admin/drop_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
def register_admin_action(subparser) -> None:
parser = subparser.add_parser("drop_schema", help="Drop a schema from BRAD.")
parser.add_argument(
"--config-file",
"--physical-config-file",
type=str,
required=True,
help="Path to BRAD's configuration file.",
help="Path to BRAD's physical configuration file.",
)
parser.add_argument(
"--schema-name",
Expand All @@ -33,7 +33,7 @@ def register_admin_action(subparser) -> None:
# This method is called by `brad.exec.admin.main`.
def drop_schema(args):
# 1. Load the config and blueprint.
config = ConfigFile.load(args.config_file)
config = ConfigFile.load_from_physical_config(args.physical_config_file)

# 2. Connect to the underlying engines without an explicit database.
directory = Directory(config)
Expand Down

0 comments on commit a2f0242

Please sign in to comment.