From 45df15dc30cdaa33c5dd5c757df4cc92dbea1b3e Mon Sep 17 00:00:00 2001 From: Vitalii Makarchenkov Date: Wed, 9 Aug 2023 16:20:20 +0300 Subject: [PATCH 1/2] Revert "Temporary fix dropAll command after command refactoring" This reverts commit 865565c82564655a0fb6502913e4202724bb6ff9. --- .../mongodb/database/MongoLiquibaseDatabase.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/liquibase/ext/mongodb/database/MongoLiquibaseDatabase.java b/src/main/java/liquibase/ext/mongodb/database/MongoLiquibaseDatabase.java index 5b45e980..cf1e85fd 100644 --- a/src/main/java/liquibase/ext/mongodb/database/MongoLiquibaseDatabase.java +++ b/src/main/java/liquibase/ext/mongodb/database/MongoLiquibaseDatabase.java @@ -23,15 +23,12 @@ import com.mongodb.client.MongoDatabase; import liquibase.CatalogAndSchema; import liquibase.Scope; -import liquibase.changelog.ChangeLogHistoryService; import liquibase.changelog.ChangeLogHistoryServiceFactory; import liquibase.exception.LiquibaseException; import liquibase.executor.Executor; import liquibase.executor.ExecutorService; import liquibase.ext.mongodb.configuration.MongoConfiguration; import liquibase.ext.mongodb.statement.DropAllCollectionsStatement; -import liquibase.lockservice.LockService; -import liquibase.lockservice.LockServiceFactory; import liquibase.nosql.database.AbstractNoSqlDatabase; import lombok.NoArgsConstructor; import lombok.Setter; @@ -56,16 +53,6 @@ public void dropDatabaseObjects(final CatalogAndSchema schemaToDrop) throws Liqu final Executor executor = Scope.getCurrentScope().getSingleton(ExecutorService.class).getExecutor(EXECUTOR_NAME, this); DropAllCollectionsStatement dropAllCollectionsStatement = new DropAllCollectionsStatement(); executor.execute(dropAllCollectionsStatement); - - // TODO Revert this changes in the scope of DAT-15327 - LockService lockService = LockServiceFactory.getInstance().getLockService(this); - lockService.releaseLock(); - lockService.destroy(); - LockServiceFactory.getInstance().resetAll(); - ChangeLogHistoryService changeLogService = Scope.getCurrentScope().getSingleton(ChangeLogHistoryServiceFactory.class).getChangeLogService(this); - Scope.getCurrentScope().getSingleton(ChangeLogHistoryServiceFactory.class).unregister(changeLogService); - Scope.getCurrentScope().getSingleton(ChangeLogHistoryServiceFactory.class).resetAll(); - Scope.getCurrentScope().getSingleton(ExecutorService.class).reset(); Scope.getCurrentScope().getSingleton(ChangeLogHistoryServiceFactory.class).getChangeLogService(this).destroy(); } From 0e02d08355884db5730128f51a0703182869060f Mon Sep 17 00:00:00 2001 From: Vitalii Makarchenkov Date: Mon, 14 Aug 2023 12:21:42 +0300 Subject: [PATCH 2/2] Update liquibase version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 245743b1..75aed833 100644 --- a/pom.xml +++ b/pom.xml @@ -75,7 +75,7 @@ org.liquibase liquibase-core - 4.23.0 + 4.23.1 org.codehaus.groovy