declareColumn method

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

Implementation

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