[
  {
    "type": "update",
    "description": "Change sfile_payment_columns_2026 resync rule from all_zero to all_null. all_zero re-flags rows where the POS legitimately reports 0 (e.g., stores that don't take digital/giftcard payments), causing infinite resync loops. all_null only flags rows where the field was actually missing from the payload.",
    "database": "kiosk_buykiosk",
    "check_query": "SELECT 1 FROM task_job_definitions WHERE name = 'pos-data-catchup' AND JSON_EXTRACT(config, '$.resyncRules[0].staleCriteria.condition') = 'all_null'",
    "sql": "UPDATE `task_job_definitions` SET config = JSON_SET(config, '$.resyncRules[0].staleCriteria.condition', 'all_null') WHERE name = 'pos-data-catchup'"
  }
]
