yogthos / migratus

MIGRATE ALL THE THINGS!
642 stars 93 forks source link

`:migration-dir` paths seem to follow undocumented rules #205

Closed brettrowberry closed 2 years ago

brettrowberry commented 2 years ago

When I call migratus/create, it seems to only work from certain special directories.

These work:

(migratus/create {:migration-dir "sql"} "bob")
(migratus/create {:migration-dir "migrations"} "bob")
(migratus/create {:migration-dir "tmp"} "bob")

This doesn't:

(migratus/create {:migration-dir "rando"} "bob")
yogthos commented 2 years ago

There isn't anything restricting directory names in the library. The code for resolving the directory is here and it doesn't do anything special.

brettrowberry commented 2 years ago

I can't figure out what's going on here. But you're right.