From ffb55cafa95b12d8974a7307c62e09f8135a7b19 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 30 May 2018 08:57:10 -0400 Subject: [PATCH] definition is stored in regex object --- deploy/setup.sql | 4 ++-- interface/map_def/srce_map_def_set.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/setup.sql b/deploy/setup.sql index ce644e5..dc6d3b3 100644 --- a/deploy/setup.sql +++ b/deploy/setup.sql @@ -284,7 +284,7 @@ BEGIN --map name ,_defn->>'name' --map definition - ,_defn + ,_defn->'regex' --map aggregation sequence ,(_defn->>'sequence')::INTEGER --history definition @@ -295,7 +295,7 @@ BEGIN ON CONFLICT ON CONSTRAINT map_rm_pk DO UPDATE SET srce = _defn->>'srce' ,target = _defn->>'name' - ,regex = _defn + ,regex = _defn->'regex' ,seq = (_defn->>'sequence')::INTEGER ,hist = --the new definition going to position -0- diff --git a/interface/map_def/srce_map_def_set.sql b/interface/map_def/srce_map_def_set.sql index cdbd286..20d26cf 100644 --- a/interface/map_def/srce_map_def_set.sql +++ b/interface/map_def/srce_map_def_set.sql @@ -20,7 +20,7 @@ BEGIN --map name ,_defn->>'name' --map definition - ,_defn + ,_defn->'regex' --map aggregation sequence ,(_defn->>'sequence')::INTEGER --history definition @@ -31,7 +31,7 @@ BEGIN ON CONFLICT ON CONSTRAINT map_rm_pk DO UPDATE SET srce = _defn->>'srce' ,target = _defn->>'name' - ,regex = _defn + ,regex = _defn->'regex' ,seq = (_defn->>'sequence')::INTEGER ,hist = --the new definition going to position -0-