-
-
Notifications
You must be signed in to change notification settings - Fork 360
Fix(#656) Ensure scoped migration created in subdirectory #655
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
Fix(#656) Ensure scoped migration created in subdirectory #655
Conversation
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
f9c7ef6
to
4784ddc
Compare
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
4784ddc
to
6df87cd
Compare
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 Instead, I expect: ./migrations/someScope/xxx-aMigration.js ./migrations/someScope/sqls/xxx-aMigration-up.sql ./migrations/someScope/sqls/xxx-aMigration-down.sql Signed-off-by: Anson Tsao <[email protected]>
6df87cd
to
cd128e2
Compare
seems to work, I'm currently using AnsonT's branch. @wzrdtales could you have a look? |
Thanks for your contribution! 🎉 One thing missing to cover this in the future is a test covering this, could you please add this? |
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
2837aa8
to
ecc41f6
Compare
Signed-off-by: Anson Tsao <[email protected]>
ecc41f6
to
2c9e2c4
Compare
|
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. |
Looks good, sorry for the delay though :) |
Fix for bug: #656
Current if you call
db-migrate create someScope/aMigration --sql-file, the following is created:
Instead, I expect: