This adds `place=quarter` which was introduced in 2011 as a subdivision of villages/towns/cities as a value that sits between `place=suburb` and `place=neighbourhood`. It has by now been used over 40,000 times and is rendered in the OSM-Carto.
12 lines
356 B
SQL
12 lines
356 B
SQL
DO
|
|
$$
|
|
BEGIN
|
|
IF NOT EXISTS(SELECT 1 FROM pg_type WHERE typname = 'city_place') THEN
|
|
CREATE TYPE city_place AS enum ('city', 'town', 'village', 'hamlet', 'suburb', 'quarter', 'neighbourhood', 'isolated_dwelling');
|
|
END IF;
|
|
END
|
|
$$;
|
|
|
|
ALTER TABLE osm_city_point
|
|
ALTER COLUMN place TYPE city_place USING place::city_place;
|