only create foreign tables where the foreign key is not a date
This commit is contained in:
parent
a5d9c1d145
commit
9356081662
@ -27,9 +27,8 @@ BEGIN
|
|||||||
FROM
|
FROM
|
||||||
fc.target_meta tm
|
fc.target_meta tm
|
||||||
WHERE
|
WHERE
|
||||||
func IS NOT NULL
|
--only create master tables that don't have date as a foreign key
|
||||||
--if func is populated for a date type, a foreign table will be setup unless excluded here or func not populated
|
func IN (SELECT DISTINCT func FROM fc.target_meta WHERE fkey IS NOT NULL AND func IS NOT NULL AND dtype <> 'date')
|
||||||
--AND dtype <> 'date'
|
|
||||||
GROUP BY
|
GROUP BY
|
||||||
schema
|
schema
|
||||||
,tname
|
,tname
|
||||||
|
Loading…
Reference in New Issue
Block a user