Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Creating a table with liquibase xml using api java with context defined not working

$
0
0
Thanks so much Steve, you was very fast!

First, let me to explain the cenario that I am developing. I am buiding a graphic interface that choose a database, a context tag and the rotine from liquibase (update, rollback) to run. I choose all the params and the new changes are running in the database choosed.

I used the API that you told me:

  1. List<ChangeSetStatus> list = liquibase.getChangeSetStatuses(new Contexts("TEST"));
  2. for (ChangeSetStatus change : list) {
  3.    System.out.println(change.getDescription() + " - " + change.getChangeSet().getFilePath());
  4. }

So, the code threw eighteen lines, the number of all my changesets exactly. The last line (changeset), it is the one that I want to run because of the context that I choosed on interface.

The cenario what I want, is it possible?

Thanks.

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>