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-