From 9e53758fd908436d67424c6b99f7a8cc5613ea2d Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Thu, 5 Nov 2020 22:31:55 -0500 Subject: [PATCH] include schema name in table name column --- sql/target_info.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/target_info.sql b/sql/target_info.sql index 0c5486b..5a7310e 100644 --- a/sql/target_info.sql +++ b/sql/target_info.sql @@ -3,13 +3,14 @@ BEGIN; INSERT INTO fc.target_meta SELECT - table_name + table_schema||'.'||table_name ,column_name ,ordinal_position ,'doc'::text func ,null::text fkey --foreign key to a master table ,null::text pretty ,data_type::text dtype + ,column_name mastcol FROM information_schema.columns WHERE