Skip to content

Commit

Permalink
Cannot create dir fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ximtech committed Oct 7, 2024
1 parent 1fa71f5 commit 6ca3d1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ private void checkDestinationFolder() {
File destinationFolder = new File(destinationPath);
if (!destinationFolder.exists()) {
log.info("Database migration directory not found: {}. Creating new one.", destinationPath);
if (!destinationFolder.mkdirs()) {
log.error("Failed to create directory: {}", destinationFolder);
}
FileUtils.forceMkdir(destinationFolder);
}
}
}
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ spring:
git.repository.url: "https://github.com/ximtech/altium-library"
git.repository.directory.name: "migrations"

migration.root.folder: "src/main/resources/db"
migration.root.folder: "tmp/src/main/resources/db"
db.changelog.file.name: "db.changelog-master.xml"
db.schema.name: ${LIQUIBASE_SCHEMA_NAME:altium}

0 comments on commit 6ca3d1d

Please sign in to comment.