Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
gitbucket.war.sha256 | < 17 hours ago | 64 Bytes | |
gitbucket.war.sha1 | < 17 hours ago | 40 Bytes | |
gitbucket.war.md5 | < 17 hours ago | 32 Bytes | |
gitbucket.war | < 17 hours ago | 77.4 MB | |
4.43.0 source code.tar.gz | < 17 hours ago | 5.0 MB | |
4.43.0 source code.zip | < 17 hours ago | 5.6 MB | |
README.md | < 17 hours ago | 931 Bytes | |
Totals: 7 Items | 87.9 MB | 0 |
- Upgrade H2 database from 1.x to 2.x
Note that upgrading from h2 1.x to 2.x requires data file migration: https://www.h2database.com/html/migration-to-v2.html
It can't be done automatically using GitBucket's auto migration mechanism because it relies on database itself. So, users who use h2 will have to dump and recreate their database manually with the following steps:
:::bash
# Export database using the current version of H2
$ curl -O https://repo1.maven.org/maven2/com/h2database/h2/1.4.199/h2-1.4.199.jar
$ java -cp h2-1.4.199.jar org.h2.tools.Script -url "jdbc:h2:~/.gitbucket/data" -user sa -password sa -script dump.sql
# Recreate database using the new version of H2
$ curl -O https://repo1.maven.org/maven2/com/h2database/h2/2.3.232/h2-2.3.232.jar
$ java -cp h2-2.3.232.jar org.h2.tools.RunScript -url "jdbc:h2:~/.gitbucket/data" -user sa -password sa -script dump.sql