yogthos / migratus

MIGRATE ALL THE THINGS!
645 stars 95 forks source link

support group migrations #175

Closed vinurs closed 4 years ago

vinurs commented 4 years ago

in resources/migrations directories, i want to group the sql files by sub-directory, then when i run

java -Dconf=prod-config.edn -jar suoyan-admin.jar migrate

it shows the error:

2019-10-23 10:07:02,211 [main] WARN migratus.migrations - skipping: 'user/20190222174644-create-oauth-refresh-token-table.up.sql' migrations must match pattern: ^(\d+)-([^.]+)((?:.[^.]+)+)$

yogthos commented 4 years ago

That sounds reasonable to me. I might not have time in the near future, but I'm open to a PR if you get a chance before I do.

vinurs commented 4 years ago

i have send a PR for this