yogthos/migratus

Add ability to exclude files by mask

p-himik opened this issue · 4 comments

Use case: for CLJ migrations it makes sense to put the CLJ files among with the SQL and EDN files or in a subdirectory within the migrations directory.
Right now this approach causes migratus to spew out a warning for each such file like this:

WARN migratus.migrations - skipping: 'blah.clj' migrations must match pattern: ^(\d+)-([^\.]+)((?:\.[^\.]+)+)$

IMO it would make sense to just exclude *.clj in this case.

An alternative - exclude a particular subdirectory.

That sounds reasonable, I'd be open for a PR to add that.

Took me some time. :)

Thanks, just pushed out 1.4.6 with the changes. Would you mind adding a usage example for the readme as well? and totally missed the readme update. Everything is looking great! :)