Skip to content

fix(mobile-config): run doctype_meta rename pre-sync + guard hook against missing column#35

Merged
bhushan-barbuddhe merged 1 commit into
developfrom
om/mobile-sync-bulk-fetch
Jun 17, 2026
Merged

fix(mobile-config): run doctype_meta rename pre-sync + guard hook against missing column#35
bhushan-barbuddhe merged 1 commit into
developfrom
om/mobile-sync-bulk-fetch

Conversation

@Omprakash-48

Copy link
Copy Markdown
Collaborator

fix(mobile-config): run doctype_meta rename pre-sync + guard hook against missing column

update_doctype_meta_modified reads doctype_meta_modified_at during schema sync, but rename_doctype_meta_modified_field ran in post_model_sync (after sync), so a site that still has the old typo'd column crashed migrate with 'Unknown column doctype_meta_modified_at'. Move the rename to pre_model_sync so the column is correct before any DocType on_update fires, and guard the hook with has_column so it can never abort a migrate regardless of sync ordering.

@github-actions github-actions Bot added bug Something isn't working development labels Jun 16, 2026
…inst missing column

update_doctype_meta_modified reads doctype_meta_modified_at during schema sync,
but rename_doctype_meta_modified_field ran in post_model_sync (after sync), so a
site that still has the old typo'd column crashed migrate with
'Unknown column doctype_meta_modified_at'. Move the rename to pre_model_sync so
the column is correct before any DocType on_update fires, and guard the hook with
has_column so it can never abort a migrate regardless of sync ordering.
@Omprakash-48 Omprakash-48 force-pushed the om/mobile-sync-bulk-fetch branch from 515acc9 to cb8a32c Compare June 17, 2026 05:28
@bhushan-barbuddhe bhushan-barbuddhe merged commit b8ee14f into develop Jun 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants