mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-18 17:08:42 +00:00
Convert the remaining raw frappe.db.sql in the Support module to frappe.qb / ORM so the queries run on PostgreSQL as well as MariaDB. Faithful conversions -- no MariaDB behaviour change: - issue.py, warranty_claim.py (Maintenance Visit lookup / make_maintenance_visit) - reports: first_response_time_for_issues and issue_summary (GROUP BY on the grouped Date(creation)/based-on field + Avg/Count -- Postgres-valid), support_hour_distribution Tests: existing issue suite (35) passes on both engines; adds both-engine tests for the previously-untested warranty_claim mapper (3) and the three reports. All green on MariaDB and PostgreSQL. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>