Skip to content

bug: db-migrate create scope/migration not creating migrations files in correct directory #656

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

Closed
1 of 3 tasks
AnsonT opened this issue Nov 9, 2019 · 1 comment
Closed
1 of 3 tasks
Labels

Comments

@AnsonT
Copy link
Contributor

AnsonT commented Nov 9, 2019

  • Bug report
  • Feature request
  • Question

Current behavior

db-migrate create someScope/aMigration --sql-file, the following is created:

./migrations/someScope/xxx-someScope.js
./migrations/sqls/xxx-someScope-up.sql
./migrations/sqls/xxx-someScope-down.sql

Expected behavior

./migrations/someScope/xxx-aMigration.js
./migrations/someScope/sqls/xxx-aMigration-up.sql
./migrations/someScope/sqls/xxx-aMigration-down.sql

Minimal reproduction of the problem with instructions

npx db-migrate create someScope/aMigration --sql-file

Environment


db-migrate version: 0.11.6

Additional information:
- Node version: XX  10.6.0
- Platform:  Mac
@stale
Copy link

stale bot commented Dec 9, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 9, 2019
@stale stale bot closed this as completed Dec 16, 2019
wzrdtales added a commit that referenced this issue Jan 12, 2020
Fix(#656) Ensure scoped migration created in subdirectory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant