[
  {
    "type": "raw_sql",
    "description": "Widen dailySalesData amount columns from double(6,2) to decimal(10,2). The old type capped at $9,999.99, silently truncating large transactions.",
    "database": "{{store}}",
    "check_query": "SELECT COUNT(*) as cnt FROM information_schema.COLUMNS WHERE table_schema = DATABASE() AND table_name = 'dailySalesData' AND column_name = 'salesAmount' AND column_type = 'decimal(10,2)'",
    "check_value": "0",
    "sql": "ALTER TABLE dailySalesData MODIFY salesAmount DECIMAL(10,2) DEFAULT NULL, MODIFY buyAmount DECIMAL(10,2) DEFAULT NULL, MODIFY taxAmount DECIMAL(10,2) DEFAULT NULL, MODIFY returnAmount DECIMAL(10,2) DEFAULT NULL"
  }
]
