Package de.xima.fc.liquibase
Class LiquibaseMigrationUtils
java.lang.Object
de.xima.fc.liquibase.LiquibaseMigrationUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areChangeSetsUnrun
(String... ids) static boolean
areChangeSetsUnrun
(String file, String context, String... ids) Deprecated.static boolean
areChangeSetsUnrun
(String file, liquibase.Contexts context, String... ids) static boolean
dropDatabase
(String file) static List<liquibase.changelog.ChangeSet>
static List<liquibase.changelog.ChangeSet>
getUnrunChangesets
(String file, String context) Deprecated.static List<liquibase.changelog.ChangeSet>
getUnrunChangesets
(String file, liquibase.Contexts context) static FCMessage
static FCMessage
invokeLiquibaseProzess
(ELiquibaseCmd lbCmd, String file, String context) Deprecated.static FCMessage
invokeLiquibaseProzess
(ELiquibaseCmd lbCmd, String file, liquibase.Contexts context) static boolean
static boolean
static boolean
updateDatabase
(String file, String context) Deprecated.static boolean
updateDatabase
(String file, liquibase.Contexts context)
-
Field Details
-
MASTER_XML
- See Also:
-
CONTEXT_PRODUCTIVE
- See Also:
-
CONTEXT_TEST
- See Also:
-
-
Constructor Details
-
LiquibaseMigrationUtils
public LiquibaseMigrationUtils()
-
-
Method Details
-
invokeLiquibaseProzess
public static FCMessage invokeLiquibaseProzess(ELiquibaseCmd lbCmd) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-
getUnrunChangesets
public static List<liquibase.changelog.ChangeSet> getUnrunChangesets() throws liquibase.exception.DatabaseException- Throws:
liquibase.exception.DatabaseException
-
areChangeSetsUnrun
public static boolean areChangeSetsUnrun(String... ids) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-
getUnrunChangesets
@Deprecated public static List<liquibase.changelog.ChangeSet> getUnrunChangesets(String file, String context) throws liquibase.exception.DatabaseException Deprecated. -
getUnrunChangesets
public static List<liquibase.changelog.ChangeSet> getUnrunChangesets(String file, liquibase.Contexts context) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-
areChangeSetsUnrun
@Deprecated public static boolean areChangeSetsUnrun(String file, String context, String... ids) throws liquibase.exception.DatabaseException Deprecated. -
areChangeSetsUnrun
public static boolean areChangeSetsUnrun(String file, liquibase.Contexts context, String... ids) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-
updateDatabase
@Deprecated public static boolean updateDatabase(String file, String context) throws liquibase.exception.DatabaseException Deprecated. -
updateDatabase
public static boolean updateDatabase(String file, liquibase.Contexts context) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-
dropDatabase
- Throws:
liquibase.exception.DatabaseException
-
invokeLiquibaseProzess
@Deprecated public static FCMessage invokeLiquibaseProzess(ELiquibaseCmd lbCmd, String file, String context) throws liquibase.exception.DatabaseException Deprecated.- Parameters:
lbCmd
-ELiquibaseCmd
to performfile
-String
path to the liquibase changeset-filecontext
-String
the liquibase context-name- Returns:
FCMessage
as result of the execution- Throws:
liquibase.exception.DatabaseException
- on errors
-
invokeLiquibaseProzess
public static FCMessage invokeLiquibaseProzess(ELiquibaseCmd lbCmd, String file, liquibase.Contexts context) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-
isUpToDate
public static boolean isUpToDate() -
isRunning
public static boolean isRunning()
-
areChangeSetsUnrun(String, Contexts, String...)