]> granicus.if.org Git - postgis/commitdiff
add missing file missed in last commit
authorRegina Obe <lr@pcorp.us>
Thu, 27 Jul 2017 17:45:39 +0000 (17:45 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 27 Jul 2017 17:45:39 +0000 (17:45 +0000)
References #3747

git-svn-id: http://svn.osgeo.org/postgis/trunk@15509 b70326c6-7e19-0410-871a-916f4a2858ee

extensions/postgis_tiger_geocoder/sql_bits/upgrade_before.sql.in [new file with mode: 0644]

diff --git a/extensions/postgis_tiger_geocoder/sql_bits/upgrade_before.sql.in b/extensions/postgis_tiger_geocoder/sql_bits/upgrade_before.sql.in
new file mode 100644 (file)
index 0000000..bf161a4
--- /dev/null
@@ -0,0 +1,10 @@
+-- these introduced in PostGIS 2.4\r
+DO language plpgsql\r
+$$\r
+    BEGIN\r
+        ALTER TYPE tiger.norm_addy ADD ATTRIBUTE zip4 varchar;\r
+        ALTER TYPE tiger.norm_addy ADD ATTRIBUTE address_alphanumeric varchar;\r
+    EXCEPTION\r
+        WHEN others THEN  -- ignore the error probably cause it already exists\r
+    END;\r
+$$;
\ No newline at end of file