version property

String version

The Migration version. Must match the annotated Migration version. While int is a more appropriate type, String is used instead to help the generator parse longer integers (such as a timestamp with seconds) when decoding from a constant reader.

However, as other classes such as the Migration Manager sort on this property, the version should still match RegExp("^\d+$").


final String version;