fix(tradein-sql): remove duplicate CREATE INDEX from 050 (regression from PR #500) (#515)
All checks were successful
Deploy Trade-In / changes (push) Successful in 6s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / build-backend (push) Successful in 26s
Deploy Trade-In / deploy (push) Successful in 35s

This commit is contained in:
lekss361 2026-05-24 12:16:27 +00:00
parent 3190bbec54
commit e45ff47aa6

View file

@ -77,18 +77,16 @@ CREATE INDEX IF NOT EXISTS listings_kadastr_idx
ON listings (kadastr_num)
WHERE kadastr_num IS NOT NULL;
-- 8) listing_sources (listing_id) — for source aggregation
CREATE INDEX IF NOT EXISTS listing_sources_listing_idx2
ON listing_sources (listing_id);
-- 8) listing_sources (listing_id) — REMOVED in PR 7
-- duplicate of 028_matching_tables.sql's listing_sources_listing_idx.
-- 9) listing_sources (listing_id, price_rub) — for price divergence detection
CREATE INDEX IF NOT EXISTS listing_sources_price_divergence_idx2
ON listing_sources (listing_id, price_rub)
WHERE price_rub IS NOT NULL;
-- 10) houses GIST + fingerprint + kadastr (consolidated houses indexes)
CREATE INDEX IF NOT EXISTS houses_geom_idx2
ON houses USING GIST (geom);
-- 10) houses fingerprint + kadastr (consolidated houses indexes)
-- Note: houses_geom_idx2 removed in PR 7 — duplicated 009_houses.sql's houses_geom_idx.
CREATE INDEX IF NOT EXISTS houses_fingerprint_idx2
ON houses (address_fingerprint)
WHERE address_fingerprint IS NOT NULL;