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
Implement extendable builders #5041
Conversation
@DominicVonk I like your PR, but I'm sure it won't pass without tests |
you are right :D |
The unit test is added |
@OlivierCavadenti can you check the pr? |
Linting and types fails @DominicVonk |
Is this planned to be merged? |
@@ -41,7 +41,7 @@ class MigrationGenerator { | |||
|
|||
_getNewMigrationName(name) { | |||
if (name[0] === '-') name = name.slice(1); | |||
return yyyymmddhhmmss() + '_' + name + '.' + this.config.extension; | |||
return yyyymmddhhmmss() + '_' + name + '.' + this.config.extension.split('-')[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this an intended change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this change was intended, I added 2 stub's for js-schema / ts-schema, and the split is to only preserve the .ts / .js part
@DominicVonk Can you also submit documentation PR to https://github.com/knex/documentation? |
When will this be released to a new version? |
Released in 2.1.0 |
Fixes issue #4555
Can you merge this? @kibertoad