public class LiquibaseMigrationUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_PRODUCTIVE |
static String |
CONTEXT_TEST |
static String |
MASTER_XML |
Constructor and Description |
---|
LiquibaseMigrationUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areChangeSetsUnrun(String... ids) |
static boolean |
areChangeSetsUnrun(String file,
liquibase.Contexts context,
String... ids) |
static boolean |
areChangeSetsUnrun(String file,
String context,
String... ids)
Deprecated.
|
static boolean |
dropDatabase(String file) |
static List<liquibase.changelog.ChangeSet> |
getUnrunChangesets() |
static List<liquibase.changelog.ChangeSet> |
getUnrunChangesets(String file,
liquibase.Contexts context) |
static List<liquibase.changelog.ChangeSet> |
getUnrunChangesets(String file,
String context)
Deprecated.
|
static FCMessage |
invokeLiquibaseProzess(ELiquibaseCmd lbCmd) |
static FCMessage |
invokeLiquibaseProzess(ELiquibaseCmd lbCmd,
String file,
liquibase.Contexts context) |
static FCMessage |
invokeLiquibaseProzess(ELiquibaseCmd lbCmd,
String file,
String context)
Deprecated.
|
static boolean |
isUpToDate() |
static boolean |
updateDatabase(String file,
liquibase.Contexts context) |
static boolean |
updateDatabase(String file,
String context)
Deprecated.
|
public static final String MASTER_XML
public static final String CONTEXT_PRODUCTIVE
public static final String CONTEXT_TEST
public static FCMessage invokeLiquibaseProzess(ELiquibaseCmd lbCmd) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseException
public static List<liquibase.changelog.ChangeSet> getUnrunChangesets() throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseException
public static boolean areChangeSetsUnrun(String... ids) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseException
@Deprecated public static List<liquibase.changelog.ChangeSet> getUnrunChangesets(String file, String context) throws liquibase.exception.DatabaseException
getUnrunChangesets(String, Contexts)
public static List<liquibase.changelog.ChangeSet> getUnrunChangesets(String file, liquibase.Contexts context) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseException
@Deprecated public static boolean areChangeSetsUnrun(String file, String context, String... ids) throws liquibase.exception.DatabaseException
areChangeSetsUnrun(String, Contexts, String...)
public static boolean areChangeSetsUnrun(String file, liquibase.Contexts context, String... ids) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseException
@Deprecated public static boolean updateDatabase(String file, String context) throws liquibase.exception.DatabaseException
updateDatabase(String, Contexts)
public static boolean updateDatabase(String file, liquibase.Contexts context) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseException
public static boolean dropDatabase(String file) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseException
@Deprecated public static FCMessage invokeLiquibaseProzess(ELiquibaseCmd lbCmd, String file, String context) throws liquibase.exception.DatabaseException
invokeLiquibaseProzess(ELiquibaseCmd, String, Contexts)
lbCmd
- ELiquibaseCmd
to performfile
- String
path to the liquibase changeset-filecontext
- String
the liquibase context-nameFCMessage
as result of the executionliquibase.exception.DatabaseException
- on errorspublic static FCMessage invokeLiquibaseProzess(ELiquibaseCmd lbCmd, String file, liquibase.Contexts context) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseException
public static boolean isUpToDate()
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.