Files
domain-wall/packages/airportsdb/migrations/0001_military_hannibal_king.sql
2025-10-20 17:07:41 +03:00

17 lines
552 B
SQL

-- Custom SQL migration file, put your code below! --
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS btree_gin;
CREATE INDEX IF NOT EXISTS "trgm_idx_airport_name"
ON airport USING gin ("name" gin_trgm_ops);
CREATE INDEX IF NOT EXISTS "trgm_idx_airport_iatacode"
ON airport USING gin ("iata_code" gin_trgm_ops);
CREATE INDEX IF NOT EXISTS "trgm_idx_airport_municipality"
ON airport USING gin ("municipality" gin_trgm_ops);
CREATE INDEX IF NOT EXISTS "trgm_idx_airport_country"
ON airport USING gin ("country" gin_trgm_ops);