Liquibase Commands
Liquibase is a command line tool.
You run things from a command prompt. Usually you are in the directory that contains the liquibase project file (and changelog files)
Each command shown below is a sample of that command, and then notes on what the command does.
liquibase status
liquibase generate-changeLog –changelog-file=notes_changelog.mssql.sql
Generates a database structure into a sql file.
.mssql. - is an instruction that database is a sql server databsae.
.sql - in an instruction that output should be a sql formatted file.
Sample output
1 | -- liquibase formatted sql |
liquibase –changeLogFile=notes_changelog.xml generateChangeLog
Generates a database structure into an XML file.
.xml - output a xml file
Sample output
1 |
|