         (sutils/analyze-small-tables small-tables)
         true)
       (do
-        (log/info "There are no pending migrations")
+        (log/info (trs "There are no pending migrations"))
         false))))
 
 ;; SPECIAL INDEX HANDLING

  (try
    (f)
    (catch java.sql.SQLException e
      (log/error e "Caught SQLException during migration")
      (when-let [next (.getNextException e)]
        (log/error next "Unravelled exception"))
      (binding [*out* *err*] (flush)) (flush)
      (System/exit 1))))


  "Create trgm indexes if they do not currently exist."
  []
  (when-not (sutils/index-exists? "fact_paths_path_trgm")
    (log/info (trs "Creating additional index `fact_paths_path_trgm`"))
    (jdbc/do-commands
     "CREATE INDEX fact_paths_path_trgm ON fact_paths USING gist (path gist_trgm_ops)"))
  (when-not (sutils/index-exists? "fact_values_string_trgm")
    (log/info (trs "Creating additional index `fact_values_string_trgm`"))
    (jdbc/do-commands
     "CREATE INDEX fact_values_string_trgm ON fact_values USING gin (value_string gin_trgm_ops)")))

