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

Migrations into subdirectories (readdir recursive directory search) #932

Open
nepster-web opened this issue Mar 18, 2023 · 3 comments · May be fixed by #1226
Open

Migrations into subdirectories (readdir recursive directory search) #932

nepster-web opened this issue Mar 18, 2023 · 3 comments · May be fixed by #1226
Assignees
Labels
c: feature Request for new feature good first issue Good for newcomers help wanted Extra attention is needed p: 1-normal Nothing urgent
Milestone

Comments

@nepster-web
Copy link

this function looks weak:
https://github.com/salsita/node-pg-migrate/blob/master/src/migration.ts#L46

Is it planned to support nested directories in the migrations folder?

for example:
изображение

@ruiwei
Copy link

ruiwei commented Jul 21, 2023

It would be nice to support subfolders.

@mythmon
Copy link

mythmon commented Jul 8, 2024

Would you take a PR To add this feature? On my project we've been using node-pg-migrate for several years, and have nearly 500 migrations now. It's getting a bit annoying to scroll through all the migration files when editing code. I'd love to be able to put a migration file like 20240624172531774_add-new-table.sql (using utc prefix) into a subdirectory like 2024/20240624172531774_add-new-table.sql (or maybe 2024/0624172531774_add-new-table.sql)

@Shinigami92 Shinigami92 added c: feature Request for new feature good first issue Good for newcomers help wanted Extra attention is needed p: 1-normal Nothing urgent labels Jul 8, 2024
@Shinigami92 Shinigami92 added this to the vAnytime milestone Jul 8, 2024
@Shinigami92
Copy link
Collaborator

@mythmon As I expect this does not introduce breaking changes, you can start with a PR 😸

@mythmon mythmon linked a pull request Jul 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: feature Request for new feature good first issue Good for newcomers help wanted Extra attention is needed p: 1-normal Nothing urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants