forked from Archives/Athou_commafeed
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 class H2MigrationService {
|
||||||
|
|
||||||
public void migrateIfNeeded(Path path, String user, String password) {
|
public void migrateIfNeeded(Path path, String user, String password) {
|
||||||
|
if (Files.notExists(path)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int format;
|
int format;
|
||||||
try {
|
try {
|
||||||
format = getH2FileFormat(path);
|
format = getH2FileFormat(path);
|
||||||
|
|||||||
Reference in New Issue
Block a user