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

Skip mysql for rollback test: add-join-alias-to-visualization-settings-field-refs-test (#40505)

parent 2f7952b5
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
[metabase.db :as mdb]
[metabase.db.custom-migrations :as custom-migrations]
[metabase.db.schema-migrations-test.impl :as impl]
[metabase.driver :as driver]
[metabase.models :refer [User]]
[metabase.models.database :as database]
[metabase.models.interface :as mi]
......@@ -286,14 +287,15 @@
:where [:= :id card-id]})
:visualization_settings
json/parse-string))))
(migrate! :down 46)
(testing "After reversing the migration, column_settings field refs are updated to remove join-alias"
(is (= visualization-settings
(-> (t2/query-one {:select [:visualization_settings]
:from [:report_card]
:where [:= :id card-id]})
:visualization_settings
json/parse-string))))))))
(when (not= driver/*driver* :mysql) ; skipping MySQL because of rollback flakes (metabase#37434)
(migrate! :down 46)
(testing "After reversing the migration, column_settings field refs are updated to remove join-alias"
(is (= visualization-settings
(-> (t2/query-one {:select [:visualization_settings]
:from [:report_card]
:where [:= :id card-id]})
:visualization_settings
json/parse-string)))))))))
(deftest downgrade-dashboard-tabs-test
(testing "Migrations v47.00-029: downgrade dashboard tab test"
......
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