Skip to content
Vapor Week is coming 14th September!

Instance Method

column(_:type:_:)

Add a new column by name, type, and constraints.
@discardableResult func column(_ column: String, type dataType: SQLDataType, _ constraints: SQLColumnConstraintAlgorithm...) -> Self