mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
close liquibase instance
This commit is contained in:
@@ -63,8 +63,10 @@ public class StartupService implements Managed {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ResourceAccessor accessor = new ClassLoaderResourceAccessor(Thread.currentThread().getContextClassLoader());
|
ResourceAccessor accessor = new ClassLoaderResourceAccessor(Thread.currentThread().getContextClassLoader());
|
||||||
Liquibase liq = new Liquibase("migrations.xml", accessor, database);
|
try (Liquibase liq = new Liquibase("migrations.xml", accessor, database)) {
|
||||||
liq.update("prod");
|
liq.update("prod");
|
||||||
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user