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

Re : How could i have changeLog in YAML Format

$
0
0
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? 


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:

changeSet:
  id: addLookupTable-example
  author: liquibase-docs
  objectQuotingStrategy: LEGACY
  changes:
  - addLookupTable:
      constraintName: fk_address_state
      existingColumnName: state
      existingTableName: address
      newColumnDataType: char(2)
      newColumnName: abbreviation
      newTableCatalogName: cat
      newTableName: state
      newTableSchemaName: public


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

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>