Commit Graph

7 Commits

Author SHA1 Message Date
David Bomba
f2fe3d3592 Fixes for calendar connections + search 2026-06-05 11:49:00 +10:00
David Bomba
b4c37edf94 Updates for elastic + search permissions 2026-06-05 09:44:18 +10:00
David Bomba
d9f59710ee Support expense.transaction_reference in elastic search 2026-05-13 14:07:02 +10:00
David Bomba
00290f483c Add forte customer import 2026-04-28 17:28:41 +10:00
David Bomba
142bc03658 fix: Add idempotency checks to all Elasticsearch migrations
Problem:
- Running elastic:rebuild --model=X failed when indexes already existed
- Migrations threw "index already exists" errors in production
- Command runs ALL migrations even when rebuilding single model

Solution:
- Added existence checks to all 12 migration files
- Migrations now skip creation if index already exists
- Safe to run multiple times without errors

Changes:
- Added ClientBuilder import to all migrations
- Check indices()->exists() before creating
- Return early if index already exists
- Removed force drop from recurring_invoices migration

Benefits:
- Production-safe partial rebuilds
- No "already exists" errors
- Idempotent migrations
- Clean log output

Files modified:
- All 12 files in elastic/migrations/*.php
2025-11-26 02:15:02 +00:00
David Bomba
2795faa0fe Improving coverage of Global Search 2025-09-01 18:10:37 +10:00
David Bomba
8231d967dd Elastic migrations 2025-09-01 14:21:17 +10:00