【备忘】liquibase,.xml中的各种标签,支持的sql语句
2015-08-21 08:33
861 查看
liquibase官网http://www.liquibase.org/
一. 总体格式
说明:
1. <databaseChangeLog ...></databaseChangeLog>负责指定liquibase标签遵循的规则,标签的定义是在xsd文件中(在IDEA 13中ctrl+鼠标左键点击该文件可以查看)
2. <changeSet></changeSet>是数据库记录更改的最小单元,该标签有两个属性:author和id。其中,id必须不同
除此之外,该标签还有dbms属性,从{mysql,postgresql,oracle,mssql,sybase,asany,db2,derby,hsqldb,h2,informix,firebird,sqlite}中指定一个作为数据库类型。
该标签的子标签有:comment,preConditions,validCheckSum,rollback等,详见官方在线文档。
一. 总体格式
<span style="font-size:14px;"><?xml version="1.0" encoding="UTF-8"?> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd" logicalFilePath="/ColorSetup.changelog.xml"> <changeSet author="dbisalputra" id="1"> ... </changeSet> <changeSet author="dbisalputra" id="2"> ... </changeSet> ... ... <changeSet author="dbisalputra" id="998"> ... </changeSet> </databaseChangeLog></span>
说明:
1. <databaseChangeLog ...></databaseChangeLog>负责指定liquibase标签遵循的规则,标签的定义是在xsd文件中(在IDEA 13中ctrl+鼠标左键点击该文件可以查看)
<span style="font-size:14px;">http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd</span>
2. <changeSet></changeSet>是数据库记录更改的最小单元,该标签有两个属性:author和id。其中,id必须不同
除此之外,该标签还有dbms属性,从{mysql,postgresql,oracle,mssql,sybase,asany,db2,derby,hsqldb,h2,informix,firebird,sqlite}中指定一个作为数据库类型。
该标签的子标签有:comment,preConditions,validCheckSum,rollback等,详见官方在线文档。
相关文章推荐
- Leetcode: Unique Binary Search Trees
- [LeetCode#60]Permutation Sequence
- [Amazon]Given 2 numbers. Find if they are consecutive gray (grey) code sequences
- HUST team contest #2 C Divisible Subsequences ||poj 3844 (剩余类)
- iOS 笔记二:Multiple MVCs 、UINavigationController 、UITabBarController
- iOS实时检测UITextField内容
- DB Query Analyzer 6.04 is distributed, 78 articles concerned have been published
- Continue Posting, Keep Fighting
- iOS UI基础-3.0图片浏览器及plist使用
- String,StringBuffer与StringBuilder的区别?
- UVa 11085 - Back to the 8-Queens
- 解决duilib水平布局(HorizontalLayout)中控件位置计算错误的问题
- hdu 2064 Queuing (递推)
- break & continue
- ui学习总结第三天总结
- [LeetCode] Permutation Sequence
- LightOJ Array Queries 1082【线段树求区间最值】
- iOS_8_API:UIVisualEffectView (毛玻璃效果)
- ural Penguin-Avia
- Light OJ 1082 1082 - Array Queries(区间最值)