SchemaMigration constructor

SchemaMigration({
  1. required int fromVersion,
  2. required int toVersion,
  3. required List<ColumnOperation> operations,
  4. String? entityType,
  5. bool where(
    1. Map<String, dynamic> row
    )?,
  6. String? sqlWhere,
})

Implementation

SchemaMigration({
  required int fromVersion,
  required int toVersion,
  required List<ColumnOperation> operations,
  this.entityType,
  this.where,
  this.sqlWhere,
})  : assert(toVersion > fromVersion, 'toVersion must be greater than fromVersion'),
      _fromVersion = fromVersion,
      _toVersion = toVersion,
      operations = List.unmodifiable(operations);