This commit is contained in:
Shion 2023-04-04 15:08:07 +09:00 committed by Simon Binder
parent 48ea2c94a9
commit d63701201a
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ Note that the primary key must essentially be constant so that the generator can
Starting from version 1.6.0, `UNIQUE` SQL constraints can be defined on Dart tables too.
A unique constraint contains one or more columns. The combination of all columns in a constraint
must be unique in the table, or the databas will report an error on inserts.
must be unique in the table, or the database will report an error on inserts.
With drift, a unique constraint can be added to a single column by marking it as `.unique()` in
the column builder.
@ -431,4 +431,4 @@ Considering the view from the example above,
`Expression`
- the `description` column, referencing `categories.description`, is non-nullable.
This is because it references `categories`, the primary table of the view's
select statement.
select statement.