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 booleanareChangeSetsUnrun(String... ids) static booleanareChangeSetsUnrun(String file, String context, String... ids) Deprecated.static booleanareChangeSetsUnrun(String file, liquibase.Contexts context, String... ids) static booleandropDatabase(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 FCMessagestatic FCMessageinvokeLiquibaseProzess(ELiquibaseCmd lbCmd, String file, String context) Deprecated.static FCMessageinvokeLiquibaseProzess(ELiquibaseCmd lbCmd, String file, liquibase.Contexts context) static booleanstatic booleanstatic booleanupdateDatabase(String file, String context) Deprecated.static booleanupdateDatabase(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-ELiquibaseCmdto performfile-Stringpath to the liquibase changeset-filecontext-Stringthe liquibase context-name- Returns:
FCMessageas 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...)