Merge pull request #33091 from rohitwaghchaure/fixed-rerun-patch

fix: re-run patch
This commit is contained in:
rohitwaghchaure 2025-06-25 16:41:52 +05:30 committed by GitHub
commit 95d790b775
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,5 @@
[pre_model_sync]
frappe.patches.v16_0.enable_setup_complete
frappe.patches.v16_0.enable_setup_complete #25-06-2025
frappe.patches.v15_0.remove_implicit_primary_key
frappe.patches.v12_0.remove_deprecated_fields_from_doctype #3
execute:frappe.utils.global_search.setup_global_search_table()

View file

@ -6,6 +6,11 @@ def execute():
frappe.reload_doc("core", "doctype", "installed_applications")
is_setup_complete = frappe.db.get_single_value("System Settings", "setup_complete")
if frappe.get_all(
"User", filters={"name": ("not in", ["Guest", "Administrator"])}, pluck="name", limit=1
):
is_setup_complete = 1
installed_apps = frappe.get_installed_apps(_ensure_on_bench=True)
for app_name in frappe.get_all("Installed Application", pluck="app_name"):
if app_name not in installed_apps: