Foster autoIncrementedPrimaryKey in documentation

This commit is contained in:
Gwendal Roué committed 2018-04-21 20:11:34 +02:00
1 parent e80dab2ea9
commit 7aacaef2cd
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -6,7 +6,7 @@ extension Database {
/// Creates a database table.
///
/// try db.create(table: "pointOfInterests") { t in
/// t.column("id", .integer).primaryKey()
/// t.autoIncrementedPrimaryKey("id")
/// t.column("title", .text)
/// t.column("favorite", .boolean).notNull().default(false)
/// t.column("longitude", .double).notNull()
@@ -35,7 +35,7 @@ extension Database {
/// Creates a database table.
///
/// try db.create(table: "pointOfInterests") { t in
/// t.column("id", .integer).primaryKey()
/// t.autoIncrementedPrimaryKey("id")
/// t.column("title", .text)
/// t.column("favorite", .boolean).notNull().default(false)
/// t.column("longitude", .double).notNull()
@@ -67,7 +67,7 @@ extension Database {
/// Creates a database table.
///
/// try db.create(table: "pointOfInterests") { t in
/// t.column("id", .integer).primaryKey()
/// t.autoIncrementedPrimaryKey("id")
/// t.column("title", .text)
/// t.column("favorite", .boolean).notNull().default(false)
/// t.column("longitude", .double).notNull()