Refactor place layer

This commit is contained in:
lukasmartinelli
2016-10-28 12:05:18 +02:00
parent 52c7306563
commit 38dcc030b0
5 changed files with 52 additions and 119 deletions

7
layers/place/types.sql Normal file
View File

@@ -0,0 +1,7 @@
DO $$
BEGIN
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'place_subclass') THEN
CREATE TYPE place_subclass AS ENUM ('city', 'town', 'village', 'hamlet', 'suburb', 'neighbourhood', 'isolated_dwelling');
END IF;
END
$$;