JBoss Data Grid JDBC migration tool
===================================

This package contains a migration tool which converts the data stored in a JDBC store by JDG 6.0 and 6.1 (Infinispan 5.2.x) into the format used by JDG 6.2+ (Infinispan 6.x).
The tool is invoked as follows:

java -cp infinispan-jdbc-migrator52x.jar org.infinispan.persistence.migrator.jdbc.JdbcUpgradeTool [property file]

Since the tool needs access to the necessary JDBC driver make sure you put it in the classpath:

java -cp infinispan-jdbc-migrator52x.jar:myspecialjdbcdriver.jar org.infinispan.persistence.migrator.jdbc.JdbcUpgradeTool [property file]

The migration tool must be executed "offline", which means that neither JDG nor any other application must be accessing the tables

The following is a description of the properties which must be present in the property file:

# Select the type of JDBC cache store
type=string|binary|mixed
# The name of the source cache (as defined in the configuration)
source.cacheName=source
# A standard JDBC connection URL to the source database
source.connectionUrl=jdbc:h2:dbdir/string;IFEXISTS=TRUE;DB_CLOSE_DELAY=-1
# A fully-qualified name of a JDBC driver which must be present on the classpath
source.driverClass=org.h2.Driver
# The database username for the source database
source.username=sa
# The database password for the source database
source.password=
# The source id column name
source.idColumnName=id
# The source id column type
source.idColumnType=VARCHAR
# The source data column name
source.dataColumnName=datum
# The source data column type
source.dataColumnType=BINARY
# The source timestamp column name
source.timestampColumnName=version
# The source timestamp column type
source.timestampColumnType=BIGINT
# The source table name prefix
source.tableNamePrefix=ISPN_JS
# The name of the target cache (as defined in the configuration)
target.cacheName=target
# A standard JDBC connection URL to the target database
target.connectionUrl=jdbc:h2:${test.dbdir}/string;IFEXISTS=TRUE;DB_CLOSE_DELAY=-1
# A fully-qualified name of a JDBC driver which must be present on the classpath
target.driverClass=org.h2.Driver
# The database username for the target database
target.username=sa
# The database password for the target database
target.password=
# The target id column name
target.idColumnName=id
# The target id column type
target.idColumnType=VARCHAR
# The target data column name
target.dataColumnName=datum
# The target data column type
target.dataColumnType=BINARY
# The target timestamp column name
target.timestampColumnName=version
# The target timestamp column type
target.timestampColumnType=BIGINT
# The target table name prefix
target.tableNamePrefix=ISPN_JS

