Conversation
Fixed some typos
content/03-reference/01-tools-and-interfaces/01-prisma-schema/index.mdx
Outdated
Show resolved
Hide resolved
content/03-reference/01-tools-and-interfaces/07-preview-features/001-sql-server/index.mdx
Outdated
Show resolved
Hide resolved
| * The `license_number` field has a `UNIQUE` constraint | ||
| * The `license_number` field only allows **one** `NULL` value | ||
|
|
||
| The standard way to get around this issue is to create a filtered unique index that excludes `NULL` values. This allows you to insert multiple `NULL` values. If you do not create an index in the database, you will get an error if you try to insert more than one `null` value into a column with Prisma Client. |
There was a problem hiding this comment.
@thebiglabasky should we mention that partial indices are not visible in the introspected data model, even when just doing WHERE key IS NOT NULL. This should be available later, but I can't find the ticket for now. We should maybe find it or create a new one, so people can follow the progress...
There was a problem hiding this comment.
Created a docs GH issue for this to remind myself in case we squash-merge before answering this
There was a problem hiding this comment.
That'd be ideal indeed
…index.mdx Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com>
…es/001-sql-server/index.mdx Co-authored-by: Julius de Bruijn <bruijn@prisma.io>
content/03-reference/01-tools-and-interfaces/05-prisma-cli/02-command-reference.mdx
Outdated
Show resolved
Hide resolved
content/03-reference/01-tools-and-interfaces/05-prisma-cli/02-command-reference.mdx
Outdated
Show resolved
Hide resolved
…command-reference.mdx Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com>
albertoperdomo
left a comment
There was a problem hiding this comment.
Reviewed documentation on db push. Left some suggestions and comments.
content/03-reference/01-tools-and-interfaces/05-prisma-cli/02-command-reference.mdx
Outdated
Show resolved
Hide resolved
content/03-reference/01-tools-and-interfaces/05-prisma-cli/02-command-reference.mdx
Outdated
Show resolved
Hide resolved
content/03-reference/01-tools-and-interfaces/05-prisma-cli/02-command-reference.mdx
Outdated
Show resolved
Hide resolved
content/03-reference/01-tools-and-interfaces/05-prisma-cli/02-command-reference.mdx
Outdated
Show resolved
Hide resolved
|
Some users will already have an existing database. I'd suggest adjusting the "Start from scratch with SQL Server" guide and inform users that they can skip the step where the database is created with SQL. |
No description provided.