-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
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)
stackexchange-dump-to-postgres/load_into_pg.py
Lines 400 to 408 in 49d8358
| 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
Labels
No labels