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

Implement extendable builders #5041

Merged
merged 11 commits into from May 17, 2022
Merged

Implement extendable builders #5041

merged 11 commits into from May 17, 2022

Conversation

DominicVonk
Copy link
Contributor

@DominicVonk DominicVonk commented Mar 1, 2022

Fixes issue #4555

Can you merge this? @kibertoad

@intech
Copy link
Contributor

intech commented Mar 3, 2022

@DominicVonk I like your PR, but I'm sure it won't pass without tests

@OlivierCavadenti
Copy link
Collaborator

@DominicVonk I like your PR, but I'm sure it won't pass without tests

you are right :D

@DominicVonk
Copy link
Contributor Author

The unit test is added

@DominicVonk
Copy link
Contributor Author

@OlivierCavadenti can you check the pr?

@OlivierCavadenti
Copy link
Collaborator

Linting and types fails @DominicVonk

@DominicVonk
Copy link
Contributor Author

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];
Copy link
Collaborator

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?

Copy link
Contributor Author

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

@kibertoad kibertoad merged commit a4df3e3 into knex:master May 17, 2022
@kibertoad
Copy link
Collaborator

@DominicVonk Can you also submit documentation PR to https://github.com/knex/documentation?

@creatyvtype
Copy link

When will this be released to a new version?

@kibertoad
Copy link
Collaborator

Released in 2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants