From 242ebb8029d32754cd19dd88b5ba202529eb37b4 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 30 Oct 2017 14:43:04 -0400 Subject: [PATCH] add a conversion to pay_month --- map_rm_template.pgsql | 45 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) 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