I attempt to rename an existing column name and modify its data type in liquibase, how to define these changes in YAML?
How-To
YAML will looks like:
- changeSet: id: 4 author: albert changes: - renameColumn: tableName: model oldColumnName: PREDICT_JSON newColumnName: STATISTICS_JSON - modifyDataType: tableName: model columnName: STATISTICS_JSON newDataType: text
Reference
[1] http://www.liquibase.org/documentation/changes/rename_column.html
[2] http://www.liquibase.org/documentation/changes/modify_data_type.html
No comments:
Post a Comment