fix(hrms): guard column trong seed_pc_trang_phuc_split patch (TETRA-1455) #23

Merged
tant merged 1 commit from fix/TETRA-wave1-patch-column-guards into develop 2026-04-26 18:05:02 +07:00
Owner

Hotfix #2 cho Wave 1 deploy. Patch trực tiếp gọi frappe.db.get_value(...custom_annual_tax_exempt_cap...) trước khi after_migrate hook tạo custom field.

Fix: thêm frappe.db.has_column() guard. Idempotent — backfill sẽ chạy ở lần migrate sau khi custom fields đã được provision.

Refs: TETRA-1455

Hotfix #2 cho Wave 1 deploy. Patch trực tiếp gọi `frappe.db.get_value(...custom_annual_tax_exempt_cap...)` trước khi `after_migrate` hook tạo custom field. Fix: thêm `frappe.db.has_column()` guard. Idempotent — backfill sẽ chạy ở lần migrate sau khi custom fields đã được provision. Refs: TETRA-1455
Patch chạy trong post_model_sync — TRƯỚC after_migrate hook tạo custom
fields. Lần đầu deploy: cột custom_annual_tax_exempt_cap chưa tồn tại
→ MySQLdb 1054.

Add frappe.db.has_column guard. Patch sẽ skip backfill cap lần đầu;
sau khi after_migrate provision custom fields, lần migrate kế tiếp
backfill chạy bình thường (idempotent).

Refs: TETRA-1455

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
tant merged commit 4df5294222 into develop 2026-04-26 18:05:02 +07:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tant/vhrms!23
No description provided.