Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ def _ensure_mobile_uuid_field(doctype: str) -> None:


def update_doctype_meta_modified(doc: Document, method: str | None = None) -> None:
if not frappe.db.has_column("Mobile Configuration Form", "doctype_meta_modified_at"):
return

doctype_name = _get_doctype_name_from_doc(doc)
if not doctype_name:
return
Expand Down
2 changes: 1 addition & 1 deletion mobile_control/patches.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[pre_model_sync]
# Patches added in this section will be executed before doctypes are migrated
# Read docs to understand patches: https://frappeframework.com/docs/v14/user/en/database-migrations
mobile_control.patches.v1_0.rename_doctype_meta_modified_field

[post_model_sync]
# Patches added in this section will be executed after doctypes are migrated
mobile_control.patches.v1_0.set_offline_enabled_default
mobile_control.patches.v1_0.rename_doctype_meta_modified_field
Loading