Kaynağa Gözat

[fix] confirm reinstall

version-14
Anand Doshi 9 yıl önce
ebeveyn
işleme
3ffea03e7e
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. +2
    -1
      frappe/commands/site.py

+ 2
- 1
frappe/commands/site.py Dosyayı Görüntüle

@@ -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')


Yükleniyor…
İptal
Kaydet