Commit 0ce4a314 authored by Romain Bioteau's avatar Romain Bioteau Committed by GitHub

fix(database) fix h2 file name (#1841)

Closes BS-469
parent bdad57ea
......@@ -69,7 +69,7 @@ public class DatabaseHandler {
if (workDir != null && workDir.exists()) {
for (final File file : workDir.listFiles()) {
final String fileName = file.getName();
if (fileName.endsWith("h2.db") && fileName.startsWith(dbFileName)) {
if (fileName.endsWith(".db") && fileName.startsWith(dbFileName)) {
PlatformUtil.delete(file, null);
if (file.exists()) {
BonitaStudioLog.info(fileName + " failed to be deleted", CommonRepositoryPlugin.PLUGIN_ID);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment