declareColumn method

  1. @override
MigrationColumn declareColumn(
  1. String name,
  2. Column column
)

Implementation

@override
MigrationColumn declareColumn(String name, Column column) {
  if (_columns.containsKey(name)) {
    throw StateError('Cannot redeclare column "$name".');
  }
  var col = MigrationColumn.from(column);
  _columns[name] = col;
  return col;
}