List<String> errorMessages

Human-readable list of differences between expectedColumn and actualColumn.

Empty is there are no differences.

Source

List<String> get errorMessages {
  if (expectedColumn == null && actualColumn != null) {
    return [
      "Column '${actualColumn.name}' in table '${actualColumn.table
          .name}' should NOT exist, but is created by migration files"
    ];
  } else if (expectedColumn != null && actualColumn == null) {
    return [
      "Column '${expectedColumn.name}' in table '${expectedColumn.table
          .name}' should exist, but is NOT created by migration files"
    ];
  }

  return _differingProperties.map((propertyName) {
    var expectedValue = reflect(expectedColumn).getField(new Symbol(propertyName)).reflectee;
    var actualValue = reflect(actualColumn).getField(new Symbol(propertyName)).reflectee;

    return "Column '${expectedColumn.name}' in table '${actualColumn.table.name}' expected "
        "'$expectedValue' for '$propertyName', but migration files yield '$actualValue'";
  }).toList();
}