[
  {
    "type": "insert",
    "description": "Backfill qb_account_mapping rows for the buy/gift-card payment fields added in 20260408_001 (buyPaidDigital, buyPaidGiftCard, paidOutGiftCard). Without these mapping rows, JournalEntryService::buildJournalLines() silently SKIPS unmapped fields (treated as 'no mapping configured'), so any non-zero amounts in these new columns never post to QBO and never surface in the mapping UI for an admin to configure. Idempotent via INSERT IGNORE on (typeNum, fieldName) unique key — preserves any store-level admin overrides that may already exist.",
    "database": "{{store}}",
    "sql": "INSERT IGNORE INTO qb_account_mapping (fieldName, fieldDescription, fieldCategory, entryType, journalEntryGroup) VALUES ('buyPaidDigital', 'Buys Paid - Digital', 'buys', 'credit', 'buys'), ('buyPaidGiftCard', 'Buys Paid - Gift Card', 'buys', 'credit', 'buys'), ('paidOutGiftCard', 'Paid Out - Gift Card', 'other', 'credit', 'other')"
  }
]
