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.
- Host: GitHub
- URL: https://github.com/manticore-projects/h2migrationtool
- Owner: manticore-projects
- License: gpl-3.0
- Created: 2020-09-16T15:16:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-11T15:53:34.000Z (over 1 year ago)
- Last Synced: 2024-08-12T16:19:27.739Z (over 1 year ago)
- Topics: h2, h2-database, migration, script, sql, upgrade
- Language: Java
- Homepage: https://manticore-projects.com/H2MigrationTool/index.html
- Size: 60.5 MB
- Stars: 31
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# H2MigrationTool [**WebSite**](http://manticore-projects.com/H2MigrationTool/index.html)
[](https://mvnrepository.com/artifact/com.manticore-projects.tools/h2migrationtool) [](https://app.codacy.com/gh/manticore-projects/H2MigrationTool/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [](https://coveralls.io/github/manticore-projects/H2MigrationTool?branch=master) [](#LICENSE)
[](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
