https://github.com/gitbucket/h2-migration
https://github.com/gitbucket/h2-migration
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gitbucket/h2-migration
- Owner: gitbucket
- Created: 2015-12-31T04:15:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-14T01:03:30.000Z (over 9 years ago)
- Last Synced: 2025-02-06T17:59:28.927Z (10 months ago)
- Language: Shell
- Size: 3.03 MB
- Stars: 2
- Watchers: 12
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitBucket H2 database migration tool
In GitBucket 3.10, we upgraded H2 to the recent version of H2 1.4.190. However it might cause a compatibility problem for data files. If you got database trouble by upgrading to GitBucket 3.10, you can migrate H2 data files using this tool.
**Note:** This tool migrate from old data files to new data files but GitBucket 3.10 might break old data files in bootstrap. So you must backup data files (`~/.gitbucket/data.*.db`) before upgrading to GitBucket 3.10 and restore from old data files before running this tool.
## Usage
```bash
$ git clone https://github.com/gitbucket/h2-migration.git
$ cd h2-migration
$ ./migration.sh
```
You can configure `GITBUCKET_HOME` by modifying head of `migration.sh`.
```bash
export GITBUCKET_HOME=~/.gitbucket
export H2_USER=sa
export H2_PASSWORD=sa
...
```
If you have any question, send it to [the gitter room](https://gitter.im/gitbucket/gitbucket).