From c7e3c86963be9a149811e915ff704980c2a3fcdf Mon Sep 17 00:00:00 2001
From: Arthur Ulfeldt <arthur@ulfeldt.com>
Date: Wed, 10 May 2017 16:27:41 -0700
Subject: [PATCH] Fix Issue 5073

When checking for a new install on MariaDB we need to upcase the
tablename when checking for the presence of the liquibase tables.
---
 src/metabase/db.clj | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/metabase/db.clj b/src/metabase/db.clj
index e80d562fecc..d122d4c44b1 100644
--- a/src/metabase/db.clj
+++ b/src/metabase/db.clj
@@ -206,7 +206,7 @@
 
    see https://github.com/metabase/metabase/issues/3715"
   [conn]
-  (let [liquibases-table-name (if (= (db-type) :h2)
+  (let [liquibases-table-name (if (#{:h2 :mysql} (db-type))
                                 "DATABASECHANGELOG"
                                 "databasechangelog")
         fresh-install? (jdbc/with-db-metadata [meta (jdbc-details)] ;; don't migrate on fresh install
-- 
GitLab