How to populate comments field in databasechangelog table

Hi,
in databasechangelog tracking table I see columns like tags, labels, contexts and also comments.
I could not find out how to populate the comments field for a changeset.
Can you please help me with some docu and an example?

Thanks,
Robert

Tag is set by running the tag command or using the tagDatabase change-type.

tagDatabase tag=“v1”

Labels, contexts, and comments are set by using changeset attributes. Check this page for details:

2 Likes

you should also be able to use the changeset sub-tag ‘comment’

<changeSet id="3" author="other.dev" labels="example-label" context="example-context">
		<comment>example-comment</comment>
		<addColumn tableName="person">
			<column name="country" type="varchar(2)"/>
		</addColumn>
	</changeSet>

(XML example)

3 Likes

Perfect! Worked :slight_smile:

Thanks for fast and precise responses.