mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
don't try to migrate h2 if database does not exist yet
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user