forked from openmrs/openmrs-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TRUNK-6208: Upgrade 2.7 Platform to Liquibase 4.27.0 (openmrs#4637)
* TRUNK-6208: Upgrade 2.7 Platform to Liquibase 4.27.0 * TRUNK-6208 remove h2 changeset * TRUNK-6208 update changeset count after remove h2 changeset * TRUNK-6208 change type from int(11) to int --------- Co-authored-by: dkayiwa <[email protected]>
- Loading branch information
Showing
15 changed files
with
126 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
api/src/main/java/org/openmrs/liquibase/LiquibaseScopeHandling.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* This Source Code Form is subject to the terms of the Mozilla Public License, | ||
* v. 2.0. If a copy of the MPL was not distributed with this file, You can | ||
* obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under | ||
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license. | ||
* | ||
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS | ||
* graphic logo is a trademark of OpenMRS Inc. | ||
*/ | ||
package org.openmrs.liquibase; | ||
|
||
import java.util.Collections; | ||
import java.util.Map; | ||
import java.util.logging.Level; | ||
|
||
import liquibase.Scope; | ||
import liquibase.ui.LoggerUIService; | ||
|
||
public class LiquibaseScopeHandling { | ||
|
||
public static String enterLiquibaseUILoggingService() throws Exception { | ||
// Temp workaround to silence liquibase writing to stdout - https://github.com/liquibase/liquibase/issues/2396, | ||
// https://github.com/liquibase/liquibase/issues/3651 | ||
LoggerUIService loggerUIService = new LoggerUIService(); | ||
loggerUIService.setStandardLogLevel(Level.FINE); | ||
Map<String, Object> m = Collections.singletonMap(Scope.Attr.ui.name(), loggerUIService); | ||
return Scope.enter(m); | ||
} | ||
|
||
public static void exitLiquibaseScope(String scopeId) throws Exception { | ||
Scope.exit(scopeId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.