Skip to content

moveTableToSchema is executed regardless of the input of the user #18

Closed
@rodrigo-morales-1

Description

@rodrigo-morales-1

Regardless of the user inputting any character, the function moveTableToSchema is executed, the only condition is that the schema specified through the --schema-name argument is different than public (see relevant code below)

choice = input("This will drop the {} table. Are you sure [y/n]?".format(table))
if len(choice) > 0 and choice[0].lower() == "y":
handleTable(
table, args.insert_json, args.foreign_keys, args.file, dbConnectionParam
)
else:
six.print_("Cancelled.")
if args.schema_name != "public":
moveTableToSchema(table, args.schema_name, dbConnectionParam)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions