varChar method

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

Implementation

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