mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
TableAlteration.add(column:type:) accepts nil type
This commit is contained in:
1 parent
8125574f8f
commit
8ce2c09b52
1 file changed
+1
-1
@@ -495,7 +495,7 @@ public final class TableAlteration {
|
||||
/// - returns: An ColumnDefinition that allows you to refine the
|
||||
/// column definition.
|
||||
@discardableResult
|
||||
public func add(column name: String, _ type: Database.ColumnType) -> ColumnDefinition {
|
||||
public func add(column name: String, _ type: Database.ColumnType? = nil) -> ColumnDefinition {
|
||||
let column = ColumnDefinition(name: name, type: type)
|
||||
addedColumns.append(column)
|
||||
return column
|
||||
|
||||
Reference in new issue
Block a user