don't try to migrate h2 if database does not exist yet

This commit is contained in:
Athou
2024-02-09 10:30:15 +01:00
parent 14e7d70106
commit 91acad0dbf

View File

@@ -18,6 +18,10 @@ import lombok.extern.slf4j.Slf4j;
public class H2MigrationService {
public void migrateIfNeeded(Path path, String user, String password) {
if (Files.notExists(path)) {
return;
}
int format;
try {
format = getH2FileFormat(path);