aboutsummaryrefslogtreecommitdiffstats
path: root/schema.sql
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-04-22 21:33:42 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-05-01 15:29:51 +0200
commitad38438a0b980ee816e1573bf18362e72345fa4d (patch)
tree8a276f36710dab903155bbdff05f7b516f5a5a00 /schema.sql
parent12c3c9ddbf6b3aa36c70fa90477d6ae8e132a230 (diff)
webmap-import: Fingerprint destination layers to detect changes.
Comparing modification times is not enough since some sources (for instance Naturvårdsverket's SCI_Rikstackande) are updated on the server even though no objects are being added; the source layer remains unchanged but the file differs because of OBJECTID changes we are not interested in.
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/schema.sql b/schema.sql
index 0afcee2..c9079f9 100644
--- a/schema.sql
+++ b/schema.sql
@@ -3012,7 +3012,8 @@ ALTER SEQUENCE postgis."vbk:vindkraftverk_ogc_fid_seq" OWNED BY postgis."vbk:vin
CREATE TABLE public.layercache (
ogc_fid bigint NOT NULL,
layername character varying(255) NOT NULL,
- last_updated timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
+ last_updated timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
+ fingerprint bytea NOT NULL
);