diff --git a/map_rm_template.pgsql b/map_rm_template.pgsql index 2cf9acb..bb90722 100644 --- a/map_rm_template.pgsql +++ b/map_rm_template.pgsql @@ -464,4 +464,47 @@ SET regex = "function": "extract" } $j$::jsonb - WHERE target = 'Check Number'; \ No newline at end of file + WHERE target = 'Check Number'; + + +UPDATE tps.map_rm +SET regex = + $j$ + { + "name":"ADP Codes", + "description":"link to adp code definitions", + "defn": [ + { + "key": "{gl_descr}", + "field": "gl_descr", + "regex": ".*", + "flag":"", + "retain":"n", + "map":"y" + }, + { + "key": "{prim_offset}", + "field": "prim_offset", + "regex": ".*", + "flag":"", + "retain":"n", + "map":"y" + }, + { + "key": "{pay_date}", + "field": "pay_month", + "regex": ".{1,4}", + "flag":"", + "retain":"y", + "map":"n" + } + ], + "function":"extract", + "where": [ + { + } + ] + } + $j$::jsonb +WHERE + target = 'ADP Codes'; \ No newline at end of file