An open API service indexing awesome lists of open source software.

https://github.com/manticore-projects/h2migrationtool

A software tool for migration of an old H2 database into a new H2 database format automatically.
https://github.com/manticore-projects/h2migrationtool

h2 h2-database migration script sql upgrade

Last synced: 6 months ago
JSON representation

A software tool for migration of an old H2 database into a new H2 database format automatically.

Awesome Lists containing this project

README

          

# H2MigrationTool [**WebSite**](http://manticore-projects.com/H2MigrationTool/index.html)

[![Maven](https://badgen.net/maven/v/maven-central/com.manticore-projects.tools/h2migrationtool)](https://mvnrepository.com/artifact/com.manticore-projects.tools/h2migrationtool) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/f9024986ff4c44199119b3f63ad18f73)](https://app.codacy.com/gh/manticore-projects/H2MigrationTool/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Coverage Status](https://coveralls.io/repos/github/manticore-projects/H2MigrationTool/badge.svg?branch=master)](https://coveralls.io/github/manticore-projects/H2MigrationTool?branch=master) [![License](https://img.shields.io/badge/License-GPL-blue)](#LICENSE)
[![issues - H2MigrationTool](https://img.shields.io/github/issues/manticore-projects/H2MigrationTool)](https://github.com/manticore-projects/H2MigrationTool/issues)

A software tool for migration of an old H2 database into a new H2 database format automatically. [Online Version is available.](http://h2migrationtool.manticore-projects.com)

[GitHub](https://github.com/manticore-projects/H2MigrationTool) [WebSite](http://manticore-projects.com/H2MigrationTool/README.html)

## Usage

Migration

```man
java -jar H2MigrationTool.jar -l -f -t -d
[-u ] [-p ] [-s ] [-c ] -o [--force] [-h]
-l,--lib-dir Folder containing the H2 jar files.
-f,--version-from Old H2 version of the existing database.
-t,--version-to New H2 version to upgrade to.
-d,--db-file The existing H2 database (old format).
-u,--user The database username.
-p,--password The database password.
-s,--script-file The export script file.
-c,--compression The Compression Method [ZIP, GZIP]
-o,--options The upgrade options [VARIABLE_BINARY]
--force Overwrite files and continue on failure.
-h,--help Show the help message.
```

Recovery

```man
usage: java -cp H2MigrationTool.jar com.manticore.Recovery [-l ] -f
-d [-h]
-l,--lib-dir (Relative) Folder containing the H2 jar files.
-f,--version-from H2 version of the existing database.
-d,--db-file The (relative) existing H2 database file.
-h,--help Show the help message.
```

## Examples

```bash
java -jar H2MigrationTool.jar -l /home/are/Downloads/h2-libs \
-f 1.4.199 -t 2.0.201 -d /home/are/.manticore/riskbox \
-c ZIP -o VARIABLE_BINARY \
--force

java -cp H2MigrationTool.jar com.manticore.Recovery \
-f 1.3.176 -d /home/are/.manticore/riskbox.h2.db \
```

## Graphical User Interface

![image](https://user-images.githubusercontent.com/18080123/120748212-9bea7980-c52c-11eb-96f0-101f0e47e3eb.png)