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

Preconditions: is it deliberate that they can only check database snapshot state?

$
0
0
It appears that preconditions can only check the state of the database as it existed at the beginning of the Liquibase run.  Is that on purpose?

For example, suppose we have the following sequence:
  1. transactional changeset: createTable A
  2. transactional changeset: check to see if A exists (<tableExists>) and add a column
On the first run, the precondition guarding the second changeset will not detect that table A exists, correct?

Is that a flaw, or a deliberate design decision?

Best,

Viewing all articles
Browse latest Browse all 2993

Trending Articles



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