Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nested migration directories support #82

Open
AzzedineOuali opened this issue Mar 28, 2023 · 2 comments
Open

Add nested migration directories support #82

AzzedineOuali opened this issue Mar 28, 2023 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@AzzedineOuali
Copy link

AzzedineOuali commented Mar 28, 2023

Hello,

Is it possible to add support for nested directories ?

Let's say i have many directories ordered by version :
--- migrations /
---------------V1.1/
---------------------V1.1.001_add_user.ts
---------------V1.2/
---------------------V1.2.001_update_user.ts

up command does not find migration files for /migrations path.

Thanks a lot for the package, works like a charm :)

Regards

@mycodeself
Copy link
Owner

Hello @AzzedineOuali

Thank you for your suggestion, I agree including this functionality, but I think the right thing to do would be to add a --recursive flag, what do you think?

@mycodeself mycodeself added enhancement New feature or request question Further information is requested labels Apr 1, 2023
@gustawdaniel
Copy link
Contributor

What should be the order of these migrations? For example, if we have names

a
  1
  4
b
  2
  3

then they should be called in order 1 4 2 3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants