Today I got a MySQL error: Server error: Data too long for column 'tasting_notes' at row 1 error.
I assume a .string dataType has a limited size. My schema is defined as:
func prepare(on database: Database) -> EventLoopFuture<Void> {
database.schema("coffee")
.id()
.field("name", .string, .required)
.field("country_code", .string, .required)
.field("process", .string)
.field("varietal", .string)
.field("tasting_notes", .string)
.create()
}
Is there a way to specify a data type longer than a .string?