Commit Graph
4 Commits
Author SHA1 Message Date
saeedandClaude Sonnet 5.5 4e09a66fbf fix(api): relink legacy cities after province inserts in seed_iran_cities
The migration re-pointed Branch/Customer at hardcoded prov-* ids before
they existed (the insert is skipped when a city already has the name),
causing Branch_cityId_fkey failures on boot. Merge now runs after the
inserts, resolves the target province by name, and relinks every table
with a City foreign key before deleting the legacy row.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 17:46:41 +03:30
mahmood 143d9aefbb fix(cities): remove 'استان' prefix, keep clean city/province names 2026-10-25 13:31:35 +03:30
mahmood 41fc2496ef fix(cities): keep only 31 provinces, remove bulky sub-cities seed 2026-10-25 13:23:57 +03:30
mahmood bb281cc5d6 feat(cities): seed all Iran provinces and cities with tree hierarchy 2026-10-25 13:04:07 +03:30