Skip to content

Commit

Permalink
Merge pull request #26562 from barredterra/migration-info
Browse files Browse the repository at this point in the history
feat: increase verbosity of post_schema_updates
  • Loading branch information
ankush committed May 27, 2024
2 parents 7a37c7f + e041603 commit 852dbd4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions frappe/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,34 @@ def post_schema_updates(self):
* Sync Installed Applications Version History
* Execute `after_migrate` hooks
"""
print("Syncing jobs...")
sync_jobs()

print("Syncing fixtures...")
sync_fixtures()

print("Syncing dashboards...")
sync_dashboards()

print("Syncing customizations...")
sync_customizations()

print("Syncing languages...")
sync_languages()

print("Flushing deferred inserts...")
flush_deferred_inserts()

print("Removing orphan doctypes...")
frappe.model.sync.remove_orphan_doctypes()

print("Syncing portal menu...")
frappe.get_single("Portal Settings").sync_menu()

print("Updating installed applications...")
frappe.get_single("Installed Applications").update_versions()

print("Executing `after_migrate` hooks...")
for app in frappe.get_installed_apps():
for fn in frappe.get_hooks("after_migrate", app_name=app):
frappe.get_attr(fn)()
Expand Down

0 comments on commit 852dbd4

Please sign in to comment.