com.googlecode.flyway.core.migration
Class MigrationInfoHelper

java.lang.Object
  extended by com.googlecode.flyway.core.migration.MigrationInfoHelper

public class MigrationInfoHelper
extends java.lang.Object

Parsing support for migrations that use the standard Flyway version + description embedding in their name. These migrations have names like 1_2__Description .


Method Summary
static java.lang.String extractDescription(java.lang.String migrationName)
          Extracts the description from a migration name formatted as 1_2__Description.
static SchemaVersion extractSchemaVersion(java.lang.String migrationName)
          Extracts the schema version from a migration name formatted as 1_2__Description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

extractSchemaVersion

public static SchemaVersion extractSchemaVersion(java.lang.String migrationName)
Extracts the schema version from a migration name formatted as 1_2__Description.

Parameters:
migrationName - The string to parse.
Returns:
The extracted schema version.

extractDescription

public static java.lang.String extractDescription(java.lang.String migrationName)
Extracts the description from a migration name formatted as 1_2__Description.

Parameters:
migrationName - The string to parse.
Returns:
The extracted description.


Copyright © 2011. All Rights Reserved.