-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Finish the implementation of @default(nanoid())
#17199
Comments
Note: there is a docs issue at prisma/docs#4363 |
For Language-tools 2 files need to be modified, basically copy what we do for cuid and rename to nanoid |
@tomhoule For clarification, when you say
are you talking about when you run If so, I'm not sure such warnings are actually emitted for |
Note: @tomhoule thinks he can point you to the functionality in the sql-destructive-change-checker you need to make work for this. |
I think I see where you're talking about (warnings.rs and scalar_field.rs seem relevant, among others in that call chain), but I don't see any warnings related to |
For the warnings: it's about migration warnings in rather than introspection warnings, I'd follow the code around https://github.com/rintaun/prisma-engines/blob/c71fd52daf0c7a10c154d02e2a6ef791e4a792c3/migration-engine/connectors/sql-migration-connector/src/database_schema.rs#L8 For the implementation: adding a simple test with a schema with a nanoid default in https://github.com/rintaun/prisma-engines/tree/c71fd52daf0c7a10c154d02e2a6ef791e4a792c3/migration-engine/migration-engine-tests/tests/single_migration_tests should make the problem with migration generation visible. |
Part of: prisma/prisma#17199 Note: we want to wait until all the work is done (see issue) before merging this.
See prisma/prisma-engines#3556 for context.
The missing pieces we identified:
prisma/packages/migrate/src/__tests__/fixtures/nativeTypes-postgresql/prisma/schema.prisma
Line 97 in c70940d
prisma/packages/migrate/src/__tests__/fixtures/nativeTypes-cockroachdb/prisma/schema.prisma
Line 91 in c70940d
Once these tasks are done, we need to:
nanoid()
schema function docs#4367nanoid()
in our next release notesNote: an improvement has been identified but is not planned for now -> #17294
The text was updated successfully, but these errors were encountered: