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

fix(migration-engine): changed type of "compositeTypeDepth" from u32 to isize #3486

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

jkomyno
Copy link
Contributor

@jkomyno jkomyno commented Dec 12, 2022

I’ve noticed a type mismatch between the compositeTypeDepth parameter defined here as u32, and the original composite_type_depth definition here as Option.
In particular, the TypeScript CLI currently passes -1 as a default value for compositeTypeDepth, which of course isn’t a valid u32 value.

This PR should fix type mismatch issues with the TS cli.

Context: deprecating introspection-engine in favor of migrate-engine (internal notion).

Related: https://github.com/prisma/schema-team/issues/221

…to isize, fixing type mismatch issues with the TS cli
Copy link
Contributor

@tomhoule tomhoule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@jkomyno jkomyno marked this pull request as ready for review December 12, 2022 13:01
@jkomyno jkomyno requested a review from a team as a code owner December 12, 2022 13:01
@jkomyno jkomyno merged commit 4e2b494 into main Dec 12, 2022
@jkomyno jkomyno deleted the fix/introspect-composite-type-depth-to-isize branch December 12, 2022 13:01
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.

2 participants