feat(tradein): SQL migrations 030-032 — Yandex schema (listings/houses/history) #453

Merged
lekss361 merged 1 commit from feat/tradein-yandex-migrations into main 2026-05-23 13:00:55 +00:00

1 commit

Author SHA1 Message Date
lekss361
65c2824507 feat(tradein): SQL migrations 030-032 — Yandex schema extensions
- 030_listings_alter_yandex.sql: 7 cols (yandex_offer_id, views_total_yandex,
  publish_date_relative, sale_type_text, agency_name/founded_year/objects_count)
  + 2 partial indexes (yandex_offer_id, agency_name)
- 031_houses_alter_yandex.sql: 9 cols (yandex_jk_id/slug, commission_year/month,
  total_area_ha, corpus_count, yandex_validated_at, yandex_total_listings,
  has_panorama) + 2 partial indexes (yandex_jk_id, commission_year)
- 032_yandex_history.sql: enables source='yandex_valuation' on existing
  house_placement_history + 2 indexes (hph_source_idx, hph_house_source_idx)

Foundation for YandexRealtyScraper v1 (Stages 2-9 follow on subsequent PRs).
Note: numbered 030-032 because 029 was already used by PR #448 (matching/
valuation/dynamics extensions). All BEGIN/COMMIT, ADD COLUMN IF NOT EXISTS,
nullable, idempotent.
2026-05-23 15:53:11 +03:00