Merge pull request #15027 from gavindsouza/update-installed-apps-on-uninstall
fix: Update installed apps on uninstall
This commit is contained in:
commit
cc1ea5e357
2 changed files with 2 additions and 0 deletions
|
|
@ -461,6 +461,7 @@ def migrate(context, skip_failing=False, skip_search_index=False):
|
|||
skip_search_index=skip_search_index
|
||||
)
|
||||
finally:
|
||||
print()
|
||||
frappe.destroy()
|
||||
if not context.sites:
|
||||
raise SiteNotSpecifiedError
|
||||
|
|
|
|||
|
|
@ -240,6 +240,7 @@ def remove_app(app_name, dry_run=False, yes=False, no_backup=False, force=False)
|
|||
|
||||
if not dry_run:
|
||||
remove_from_installed_apps(app_name)
|
||||
frappe.get_single('Installed Applications').update_versions()
|
||||
frappe.db.commit()
|
||||
|
||||
click.secho(f"Uninstalled App {app_name} from Site {site}", fg="green")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue