- Practical DevOps
- Joakim Verona
- 54字
- 2021-07-16 09:48:08
The changelog file
The following is an example of what a Liquibase changelog file can look like.
It defines two changesets, or migrations, with the numerical identifiers 1 and 2:
- Changeset 1 creates a table called customer, with a column called name
- Changeset 2 adds a column called address to the table called customer
<?xml version="1.0" encoding="utf-8"?> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd"> <changeSet id="1" author="jave"> <createTable tableName="customer"> <column name="id" type="int"/> <column name="name" type="varchar(50)"/> </createTable> </changeSet> <changeSet id="2" author="jave"> <addColumn tableName="customer"> <column name="address" type="varchar(255)"/> </addColumn> </changeSet> </databaseChangeLog>
推薦閱讀
- Data Visualization with D3 4.x Cookbook(Second Edition)
- C++ Primer習題集(第5版)
- 基于粒計算模型的圖像處理
- 精通Nginx(第2版)
- Django Design Patterns and Best Practices
- TypeScript圖形渲染實戰:基于WebGL的3D架構與實現
- INSTANT Passbook App Development for iOS How-to
- 精通MATLAB(第3版)
- Python Data Science Cookbook
- C語言程序設計習題與實驗指導
- R語言:邁向大數據之路(加強版)
- 少兒編程輕松學(全2冊)
- Building Clouds with Windows Azure Pack
- Isomorphic Go
- Raspberry Pi開發實戰