chore: delete user on the unix socket as well

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay D. Pai 2020-03-11 18:23:20 +05:30
parent 004ddacbf1
commit ca7fc2c17d
No known key found for this signature in database
GPG key ID: 75507BE256F40CED

View file

@ -82,6 +82,7 @@ def drop_user_and_database(db_name, root_login, root_password):
frappe.local.db = get_root_connection(root_login, root_password)
dbman = DbManager(frappe.local.db)
dbman.delete_user(db_name, host="%")
dbman.delete_user(db_name)
dbman.drop_database(db_name)
def bootstrap_database(db_name, verbose, source_sql=None):