Total Pageviews

2018/06/09

[liquibase] How to add new column in YAML?

Problem
I attempt to add new column in existing table, how to define these change in YAML?


How-To
YAML will looks like:
  - changeSet:
      id: 4
      author: albert
      changes:     
       - addColumn:
          tableName: model_sentence
          columns:  
          - column:
             name: is_green_icon
             type: int


Reference
[1] http://www.liquibase.org/documentation/changes/add_column.html

No comments: