# VersionFormat

enum VersionFormat : Enum<VersionFormat>

The standardized format used for the version sub-pattern of a migration script's filename. The version sub-pattern is the part of the filename that occurs between the prefix and the description separator.

## Entries

TIMESTAMP_ONLY
Link copied to clipboard
TIMESTAMP_ONLY

Uses the format `<prefix>YYYYMMDDHHMMSS<separator><description><extension>`

TIMESTAMP_WITHOUT_SECONDS
Link copied to clipboard
TIMESTAMP_WITHOUT_SECONDS

Uses the format `<prefix>YYYYMMDDHHMM<separator><description><extension>`

MAJOR_TIMESTAMP
Link copied to clipboard
MAJOR_TIMESTAMP

Uses the format `<prefix>#_YYYYMMDDHHMMSS<separator><description><extension>`

MAJOR_TIMESTAMP_WITHOUT_SECONDS
Link copied to clipboard
MAJOR_TIMESTAMP_WITHOUT_SECONDS

Uses the format `<prefix>#_YYYYMMDDHHMM<separator><description><extension>`

MAJOR_MINOR
Link copied to clipboard
MAJOR_MINOR

Uses the format `<prefix>#_#<separator><description><extension>`

MAJOR_ONLY
Link copied to clipboard
MAJOR_ONLY

Uses the format `<prefix>#<separator><description><extension>`

## Properties

entries
Link copied to clipboard
val entries: EnumEntries<VersionFormat>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int

## Functions

valueOf
Link copied to clipboard
fun valueOf(value: String): VersionFormat

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values
Link copied to clipboard
fun values(): Array<VersionFormat>

Returns an array containing the constants of this enum type, in the order they're declared.