Skip to content
Snippets Groups Projects
Unverified Commit 03381ef3 authored by Cal Herries's avatar Cal Herries Committed by GitHub
Browse files

Use database-supports? instead of hard-coded driver in `dataset-with-custom-pk-test` (#42224)

parent baa9b81b
Branches
Tags
No related merge requests found
......@@ -34,7 +34,7 @@
:fk_target_field_id nil
:semantic_type :type/PK}]
user-fields)))
(when-not (#{:sqlite} driver/*driver*) ;; our implement does not support adding fk for custom dataset yet
(when (driver/database-supports? driver/*driver* :foreign-keys (mt/db))
(testing "user_custom_id is a FK non user.custom_id"
(is (= #{{:name (format-name "user_custom_id")
:fk_target_field_id (mt/id :user :custom_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment