Skip to content
Snippets Groups Projects
Commit 6fdafd25 authored by Cam Saül's avatar Cam Saül
Browse files

Compare set of migration files with set of ran migrations :100:

parent 4a95fcd0
Branches
Tags
No related merge requests found
......@@ -40,3 +40,15 @@
(doseq [_ (range 5)]
(db/select-one-count 'Database))
(call-count)))
;; tests for filename-without-path-or-prefix
(tu/resolve-private-vars metabase.db filename-without-path-or-prefix)
(expect "my_migration" (filename-without-path-or-prefix "migrations/my_migration.json"))
(expect "my_migration" (filename-without-path-or-prefix "migrations/my_migration.yaml"))
(expect "my_migration" (filename-without-path-or-prefix "my_migration.json"))
(expect "my_migration" (filename-without-path-or-prefix "my_migration.yaml"))
(expect "my_migration" (filename-without-path-or-prefix "migrations/my_migration"))
(expect "my_migration" (filename-without-path-or-prefix "my_migration"))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment