Skip to content
Snippets Groups Projects
Unverified Commit d50fb86a authored by Luis Paolini's avatar Luis Paolini Committed by GitHub
Browse files

Add table_id in the database fields endpoint (#49206)

parent 83f0efc8
No related branches found
No related tags found
No related merge requests found
......@@ -687,13 +687,14 @@
:table_id [:in (t2/select-fn-set :id Table, :db_id id)]
:visibility_type [:not-in ["sensitive" "retired"]])
(t2/hydrate :table)))]
(for [{:keys [id name display_name table base_type semantic_type]} fields]
(for [{:keys [id name display_name table table_id base_type semantic_type]} fields]
{:id id
:name name
:display_name display_name
:base_type base_type
:semantic_type semantic_type
:table_name (:name table)
:table_id table_id
:schema (:schema table "")})))
;;; ----------------------------------------- GET /api/database/:id/idfields -----------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment