Skip to content

Commit 7679808

Browse files
committed
README updates
1 parent e9b0cc4 commit 7679808

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -406,16 +406,16 @@ several parameters that map to various column constraints and clauses.
406406
// "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
407407
```
408408

409-
> [!NOTE]
410-
> The `primaryKey` parameter cannot be used alongside
411-
> `references`. If you need to create a column that has a default value
412-
> and is also a primary and/or foreign key, use the `primaryKey` and
413-
> `foreignKey` functions mentioned under
414-
> [Table Constraints](#table-constraints).
415-
>
416-
> Primary keys cannot be optional (_e.g._, `SQLExpression<Int64?>`).
417-
>
418-
> Only an `INTEGER PRIMARY KEY` can take `.autoincrement`.
409+
> [!NOTE]
410+
> The `primaryKey` parameter cannot be used alongside
411+
> `references`. If you need to create a column that has a default value
412+
> and is also a primary and/or foreign key, use the `primaryKey` and
413+
> `foreignKey` functions mentioned under
414+
> [Table Constraints](#table-constraints).
415+
>
416+
> Primary keys cannot be optional (_e.g._, `SQLExpression<Int64?>`).
417+
>
418+
> Only an `INTEGER PRIMARY KEY` can take `.autoincrement`.
419419

420420
- `unique` adds a `UNIQUE` constraint to the column. (See the `unique`
421421
function under [Table Constraints](#table-constraints) for uniqueness
@@ -448,12 +448,12 @@ several parameters that map to various column constraints and clauses.
448448
// "name" TEXT DEFAULT 'Anonymous'
449449
```
450450

451-
> [!NOTE]
452-
> The `defaultValue` parameter cannot be used alongside
453-
> `primaryKey` and `references`. If you need to create a column that has
454-
> a default value and is also a primary and/or foreign key, use the
455-
> `primaryKey` and `foreignKey` functions mentioned under
456-
> [Table Constraints](#table-constraints).
451+
> [!NOTE]
452+
> The `defaultValue` parameter cannot be used alongside
453+
> `primaryKey` and `references`. If you need to create a column that has
454+
> a default value and is also a primary and/or foreign key, use the
455+
> `primaryKey` and `foreignKey` functions mentioned under
456+
> [Table Constraints](#table-constraints).
457457

458458
- `collate` adds a `COLLATE` clause to `SQLExpression<String>` (and
459459
`SQLExpression<String?>`) column definitions with
@@ -479,12 +479,12 @@ several parameters that map to various column constraints and clauses.
479479
// "user_id" INTEGER REFERENCES "users" ("id")
480480
```
481481

482-
> [!NOTE]
483-
> The `references` parameter cannot be used alongside
484-
> `primaryKey` and `defaultValue`. If you need to create a column that
485-
> has a default value and is also a primary and/or foreign key, use the
486-
> `primaryKey` and `foreignKey` functions mentioned under
487-
> [Table Constraints](#table-constraints).
482+
> [!NOTE]
483+
> The `references` parameter cannot be used alongside
484+
> `primaryKey` and `defaultValue`. If you need to create a column that
485+
> has a default value and is also a primary and/or foreign key, use the
486+
> `primaryKey` and `foreignKey` functions mentioned under
487+
> [Table Constraints](#table-constraints).
488488

489489

490490
### Table Constraints
@@ -1366,10 +1366,10 @@ tables](#creating-a-table).
13661366
// ALTER TABLE "users" ADD COLUMN "suffix" TEXT DEFAULT 'SR'
13671367
```
13681368

1369-
> [!NOTE]
1370-
> Unlike the [`CREATE TABLE` constraint](#table-constraints),
1371-
> default values may not be expression structures (including
1372-
> `CURRENT_TIME`, `CURRENT_DATE`, or `CURRENT_TIMESTAMP`).
1369+
> [!NOTE]
1370+
> Unlike the [`CREATE TABLE` constraint](#table-constraints),
1371+
> default values may not be expression structures (including
1372+
> `CURRENT_TIME`, `CURRENT_DATE`, or `CURRENT_TIMESTAMP`).
13731373

13741374
- `collate` adds a `COLLATE` clause to `SQLExpression<String>` (and
13751375
`SQLExpression<String?>`) column definitions with [a collating

0 commit comments

Comments
 (0)