瀏覽代碼

[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
def reinstall(context):
"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)
try:
frappe.init(site=site)
@@ -180,7 +181,7 @@ def disable_user(context, email):
user = frappe.get_doc("User", email)
user.enabled = 0
user.save(ignore_permissions=True)
frappe.db.commit()
frappe.db.commit()


@click.command('migrate')


Loading…
取消
儲存