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

FILENAME column in databasechangelog table.

$
0
0
Hi,

We have upgraded liquibase version from 3.1.1 to 3.2.0. We see there is a difference in how FILENAME column gets updated when we have includeAll tag in the xml between v3.1.1 and v3.2.0. Here's is the sample changelog table contents from same changeset executed first using 3.1.1 and then using 3.2.0:

  1. 122 sr /app/test/staging/sets/misc/3.1/3.1_0000003.sql 07-DEC-14 10.49.33.220426000 19 EXECUTED 7:a5cce35c1ae67b7d8fd18fbc0ee08c5c sql 3.2.0
  2. 121 sr /app/test/staging/sets/misc/3.1/3.1_0000002.sql 07-DEC-14 10.49.33.204243000 18 EXECUTED 7:7b85268acc885c1f1c1617ce31f18522 sql 3.2.0
  3. 120 sr /app/test/staging/sets/misc/3.1/3.1_0000001.sql 07-DEC-14 10.49.33.187842000 17 EXECUTED 7:938bc2375ef63ff27920137f9f83730d sql 3.2.0
  4. 122 sr ./misc/3.1/3.1_0000003.sql 07-DEC-14 10.45.53.996480000 16 EXECUTED 7:a5cce35c1ae67b7d8fd18fbc0ee08c5c sql 3.1.1
  5. 121 sr ./misc/3.1/3.1_0000002.sql 07-DEC-14 10.45.53.840490000 15 EXECUTED 7:7b85268acc885c1f1c1617ce31f18522 sql 3.1.1
  6. 120 sr ./misc/3.1/3.1_0000001.sql 07-DEC-14 10.45.53.663875000 14 EXECUTED 7:938bc2375ef63ff27920137f9f83730d sql 3.1.1

Ideally it shouldn't have executed the changesets using 3.2.0 but it went ahead executed them. These were insert statements in the table with no PK in it. Though the checksum of the changesets are same it seems the contents of FILENAME column are also part of the check whether to execute the changeset or not(the difference here is that 3.1.1 was updating this column with relative path while 3.2.0 is updating the column with absolute path for the same changelog.xml).

Here's another example of running same changeset from two different directories which has includeAll tag in it, this time using v3.2.0:

  1. 001 ascii /export/home/test/artifact_ascii/dir1/dml/test.sql 08-DEC-14 06.25.09.254245000 AM 13 EXECUTED 7:947f0f826d55db5a01a1fb3cca13d2fc sql 3.2.0
  2. 001 ascii /export/home/test/artifact_ascii/dir2/dml/test.sql 08-DEC-14 06.32.00.109212000 AM 14 EXECUTED 7:947f0f826d55db5a01a1fb3cca13d2fc sql 3.2.0

I am wondering if we have any option in 3.2.0 to limit the FILENAME column to be updated just with relative path when we are using includeAll Path tag in the xml.

Please advise.

Viewing all articles
Browse latest Browse all 2993

Trending Articles



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