Split into header and admin0
This commit is contained in:
parent
f1cccc2431
commit
699b5af31b
@ -1,3 +1,5 @@
|
||||
# Makefile to generate the extension out of separate sql source files.
|
||||
# Once a version is released, it is not meant to be changed. E.g: once version 0.0.1 is out, it SHALL NOT be changed.
|
||||
EXTENSION = cdb_geocoder
|
||||
EXTVERSION = $(shell grep default_version $(EXTENSION).control | sed -e "s/default_version[[:space:]]*=[[:space:]]*'\([^']*\)'/\1/")
|
||||
|
||||
@ -17,3 +19,7 @@ $(DATA): $(SOURCES_DATA)
|
||||
cat $(SOURCES_DATA) >> $@
|
||||
|
||||
all: $(DATA)
|
||||
|
||||
# Only meant for development time, do not use once a version is released
|
||||
devclean:
|
||||
rm -f $(DATA)
|
||||
|
2
geocoder/extension/sql/0.0.1/00_header.sql
Normal file
2
geocoder/extension/sql/0.0.1/00_header.sql
Normal file
@ -0,0 +1,2 @@
|
||||
-- Complain if script is sourced in psql, rather than via CREATE EXTENSION
|
||||
\echo Use "CREATE EXTENSION cdb_geocoder" to load this file. \quit
|
@ -1,6 +1,3 @@
|
||||
-- Complain if script is sourced in psql, rather than via CREATE EXTENSION
|
||||
\echo Use "CREATE EXTENSION cdb_geocoder_admin0" to load this file. \quit
|
||||
|
||||
-- Response types for admin0 geocoder
|
||||
CREATE TYPE geocode_admin_v1 AS (q TEXT, geom GEOMETRY, success BOOLEAN);
|
||||
CREATE TYPE synonym_lookup_v1 AS (q TEXT, adm0_a3 TEXT);
|
Loading…
Reference in New Issue
Block a user