Reputation: 487
I have generated a changelog file of a database using liquibase. In the changelog file the author name is set automatically. Is there a way of specifying the author name while generating the changelog file?
Upvotes: 2
Views: 1916
Reputation: 310
If you are executing from command line the liquibase.bat (windows) or liquibase (git-bash) found in the installation directory eg. C:\Program Files\liquibase (default) then you can try
./liquibase [other options] --changeSetAuthor="ABCD" [command]
Upvotes: 0
Reputation: 986
If you are executing from command line you can use -Duser.name param:
mvn liquibase:generateChangeLog -Duser.name=YOURUSERNAME
Upvotes: 1
Reputation: 3411
Liquibase uses the user name using the user.name system property. You can export the JAVA_OPTS environment variable
export JAVA_OPTS=-Duser.name=dhalder
This should create changelog with author tag having value dhalder.
Upvotes: 0
Reputation: 9016
Not currently available, but it should be fairly simple to implement. Until it is implemented, you could use something like sed
or an XSLT transform to post-process it.
Upvotes: 0