Skip to content

Commit 82f9c75

Browse files
committed
Add minimal documentation for AUTOINCREMENT
Signed-off-by: Stephen Celis <[email protected]>
1 parent 26a4ef7 commit 82f9c75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Documentation/Index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,9 @@ The `column` function is used for a single column definition. It takes an [expre
287287
``` swift
288288
t.column(id, primaryKey: true)
289289
// "id" INTEGER PRIMARY KEY NOT NULL
290+
291+
t.column(id, primaryKey: .Autoincrement)
292+
// "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
290293
```
291294
292295
> _Note:_ The `primaryKey` parameter cannot be used alongside `defaultValue` or `references`. If you need to create a column that has a default value and is also a primary and/or foreign key, use the `primaryKey` and `foreignKey` functions mentioned under [Table Constraints](#table-constraints).

0 commit comments

Comments
 (0)