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

Re : Adding comments to changesets no longer works reliably

$
0
0
There's something else going on here. In 3.0, when doing:

  1. JAXBElement elem = new JAXBElement(new QName("http://www.liquibase.org/xml/ns/dbchangelog","comment"), 
  2. String.class, "NOTE: " + comment);

Then the generated output is "-- NOTE: Some comment".

For some databases, there's a single space between "--" and "NOTE", for other databases there are two spaces. This makes it a bit harder to filter out unwanted comments (we only keep our own comments, that is, those starting with "-- NOTE")

By the way, can I simply ask Liquibase not to add its own comments, header included?



Viewing all articles
Browse latest Browse all 2993

Trending Articles