yogthos / migratus

MIGRATE ALL THE THINGS!
642 stars 93 forks source link

Add ability to exclude files by mask #177

Closed p-himik closed 1 year ago

p-himik commented 4 years ago

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.

p-himik commented 4 years ago

An alternative - exclude a particular subdirectory.

yogthos commented 4 years ago

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

p-himik commented 1 year ago

Took me some time. :)

yogthos commented 1 year ago

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! :)