How could i have changeLog in YAML Format

Hi,

How could i have changeLog in YAML Format not in XML ?

Regards

Phil

That’s kind of a broad question. Do you already know how to do things in XML? Do you have an existing database you are starting with, or are you starting with a new project and an empty database? 

The basics are shown on this page: https://www.liquibase.org/documentation/yaml_format.html

Each of the different change types have documentation and examples in XML, yaml, and json formats also - so if you go to https://www.liquibase.org/documentation/changes/add_lookup_table.html, in the middle of the page you will see an example of how to use the ‘add lookup table’ change type in yaml - it looks like this:

: addLookupTable-example liquibase-docs LEGACY : : fk_address_state state address char(2) abbreviation cat state 

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/

Hi

I have an existing ORACLE database and i am new to LIQUIBASE, i want generat YAML files

Regards

I would start by looking at this page in the documentation - it describes what you need to do for the most part.

https://www.liquibase.org/documentation/existing_project.html

The example there could be more detailed, but the important thing for you is knowing that the generateChangeLog command can generate any format of changelog. Liquibase just looks at the extension of the changelog filename you supply and generates a file of that format. 

So if you run

  liquibase --changeLogFile=changelog.xml generateChangeLog 

it will generate an XML formatted changelog. But if you run it like 

liquibase --changeLogFile=changelog.yaml generateChangeLog 

it will generate a yaml formatted changelog. 

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/