dependencies: Fix #2297: Upgrade H2 (#2317)

* refactor: drop tables according to their dependencies

* refactor: renamed table because USER is an SQL keyword

* dep: upgrade com.h2database.h2 1.4.190 to 2.1.214
This commit is contained in:
Robert Volkmann
2022-11-20 13:25:33 +01:00
committed by GitHub
parent 465a6871b2
commit c4307db0a6
6 changed files with 10 additions and 16 deletions
@@ -34,8 +34,8 @@ import org.h2.jdbcx.JdbcDataSource;
@Slf4j
public class DatabaseUtil {
private static final String DB_URL = "jdbc:h2:mem:metamapping";
private static final String CREATE_SCHEMA_SQL = "DROP TABLE IF EXISTS `user`;"
+ "CREATE TABLE `user` (\n"
private static final String CREATE_SCHEMA_SQL = "DROP TABLE IF EXISTS `user_account`;"
+ "CREATE TABLE `user_account` (\n"
+ " `id` int(11) NOT NULL AUTO_INCREMENT,\n"
+ " `username` varchar(255) NOT NULL,\n"
+ " `password` varchar(255) NOT NULL,\n"