varChar method

MigrationColumn varChar(
  1. String name, {
  2. int? length,
})

Implementation

MigrationColumn varChar(String name, {int? length}) {
  if (length == null) return declare(name, ColumnType.varChar);
  return declareColumn(
      name, Column(type: ColumnType.varChar, length: length));
}