浏览代码

[fix] confirm reinstall

version-14
Anand Doshi 9 年前
父节点
当前提交
3ffea03e7e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      frappe/commands/site.py

+ 2
- 1
frappe/commands/site.py 查看文件

@@ -111,6 +111,7 @@ def restore(context, sql_file_path, mariadb_root_username=None, mariadb_root_pas
@pass_context @pass_context
def reinstall(context): def reinstall(context):
"Reinstall site ie. wipe all data and start over" "Reinstall site ie. wipe all data and start over"
click.confirm('This will wipe your database. Are you sure you want to reinstall?', abort=True)
site = get_site(context) site = get_site(context)
try: try:
frappe.init(site=site) frappe.init(site=site)
@@ -180,7 +181,7 @@ def disable_user(context, email):
user = frappe.get_doc("User", email) user = frappe.get_doc("User", email)
user.enabled = 0 user.enabled = 0
user.save(ignore_permissions=True) user.save(ignore_permissions=True)
frappe.db.commit()
frappe.db.commit()




@click.command('migrate') @click.command('migrate')


正在加载...
取消
保存