com.googlecode.flyway.core.metadatatable
Class MetaDataTable085Upgrader

java.lang.Object
  extended by com.googlecode.flyway.core.metadatatable.MetaDataTable085Upgrader

public class MetaDataTable085Upgrader
extends java.lang.Object

Upgrades older (Flyway <= 0.8.5) metadata tables to the new format (Flyway >= 0.9).


Constructor Summary
MetaDataTable085Upgrader(org.springframework.transaction.support.TransactionTemplate transactionTemplate, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, DbSupport dbSupport, java.lang.String tableName, java.lang.String baseDir, java.lang.String encoding)
          Creates a new instance of the metadata table support.
 
Method Summary
 void upgrade()
          Upgrades the metadata table to the newer format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataTable085Upgrader

public MetaDataTable085Upgrader(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
                                org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
                                DbSupport dbSupport,
                                java.lang.String tableName,
                                java.lang.String baseDir,
                                java.lang.String encoding)
Creates a new instance of the metadata table support.

Parameters:
transactionTemplate - The transaction template to use.
jdbcTemplate - JdbcTemplate with ddl manipulation access to the database.
dbSupport - Database-specific functionality.
tableName - The name of the schema metadata table used by flyway.
baseDir - The base directory on the classpath where the Sql migrations are located.
encoding - The encoding of Sql migrations.
Method Detail

upgrade

public void upgrade()
Upgrades the metadata table to the newer format.



Copyright © 2010. All Rights Reserved.