From ae1a0324fb51c8a357b24991c3627d5c2414a784 Mon Sep 17 00:00:00 2001
From: Even Rouault <even.rouault@spatialys.com>
Date: Wed, 22 Jan 2020 22:09:26 +0100
Subject: Database: update to EPSG v9.8.6

Fixes #1867
---
 data/sql/commit.sql | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'data/sql/commit.sql')

diff --git a/data/sql/commit.sql b/data/sql/commit.sql
index d28f2b9f..b2bdc046 100644
--- a/data/sql/commit.sql
+++ b/data/sql/commit.sql
@@ -132,6 +132,11 @@ FOR EACH ROW BEGIN
         WHERE NOT EXISTS(SELECT 1 FROM geoid_model WHERE name = 'GEOID12B');
     SELECT RAISE(ABORT, 'missing GEOID18 in geoid_model')
         WHERE NOT EXISTS(SELECT 1 FROM geoid_model WHERE name = 'GEOID18');
+
+    -- check presence of NZ height shift grids
+    SELECT RAISE(ABORT, 'missing NZ height shift grids')
+        WHERE NOT EXISTS(SELECT 1 FROM grid_alternatives WHERE original_grid_name = 'auckht1946-nzvd2016.gtx');
+
 END;
 INSERT INTO dummy DEFAULT VALUES;
 DROP TRIGGER final_checks;
-- 
cgit v1.2.3

