提交 a2fccfb0 编写于 作者: sq3536's avatar sq3536

liquibase

上级 9e22fd72
...@@ -4,16 +4,20 @@ ...@@ -4,16 +4,20 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"> http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<property name="now" value="now()" dbms="mysql,h2"/> <property name="now" value="CURRENT_TIMESTAMP" dbms="mysql,h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/> <property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="now" value="sysdate" dbms="oracle"/> <property name="now" value="sysdate" dbms="oracle"/>
<changeSet id="1561433044785-1" author="flowable"> <property name="ACT_DE_DATABASECHANGELOG" value="act_de_databasechangelog" dbms="mysql,h2,postgresql"/>
<preConditions onFail="MARK_RAN"> <property name="ACT_DE_DATABASECHANGELOG" value="ACT_DE_DATABASECHANGELOG" dbms="oracle"/>
<not>
<tableExists tableName="ACT_DE_DATABASECHANGELOG"/> <changeSet id="1561433044786-1" author="flowable">
<preConditions onFail="MARK_RAN" >
<not >
<tableExists tableName="${ACT_DE_DATABASECHANGELOG}" />
</not> </not>
</preConditions> </preConditions>
<!-- model --> <!-- model -->
<createTable tableName="ACT_DE_DATABASECHANGELOG"> <createTable tableName="ACT_DE_DATABASECHANGELOG">
<column name="id" type="varchar(255)"> <column name="id" type="varchar(255)">
...@@ -25,8 +29,8 @@ ...@@ -25,8 +29,8 @@
<column name="filename" type="varchar(255)"> <column name="filename" type="varchar(255)">
<constraints nullable="false" /> <constraints nullable="false" />
</column> </column>
<column name="dateexecuted" type="datetime(6)" defaultValueDate="${now}"> <column name="dateexecuted" type="datetime(6)" >
<constraints nullable="false" /> <constraints nullable="true" />
</column> </column>
<column name="orderexecuted" type="int"> <column name="orderexecuted" type="int">
<constraints nullable="false" /> <constraints nullable="false" />
...@@ -79,10 +83,11 @@ ...@@ -79,10 +83,11 @@
<insert tableName="ACT_DE_DATABASECHANGELOG"> <insert tableName="ACT_DE_DATABASECHANGELOG" >
<column name="ID" value="1"/> <column name="ID" value="1"/>
<column name="AUTHOR" value="flowable"/> <column name="AUTHOR" value="flowable"/>
<column name="FILENAME" value="META-INF/liquibase/flowable-modeler-app-db-changelog.xml"/> <column name="FILENAME" value="META-INF/liquibase/flowable-modeler-app-db-changelog.xml"/>
<column name="DATEEXECUTED" valueDate="2019-10-23T20:40:17"/>
<column name="ORDEREXECUTED" value="1"/> <column name="ORDEREXECUTED" value="1"/>
<column name="EXECTYPE" value="EXECUTED"/> <column name="EXECTYPE" value="EXECUTED"/>
<column name="MD5SUM" value="8:e70d1d9d3899a734296b2514ccc71501"/> <column name="MD5SUM" value="8:e70d1d9d3899a734296b2514ccc71501"/>
...@@ -94,10 +99,11 @@ ...@@ -94,10 +99,11 @@
<column name="LABELS"/> <column name="LABELS"/>
<column name="DEPLOYMENT_ID" value="9219494793"/> <column name="DEPLOYMENT_ID" value="9219494793"/>
</insert> </insert>
<insert tableName="ACT_DE_DATABASECHANGELOG"> <insert tableName="ACT_DE_DATABASECHANGELOG" >
<column name="ID" value="3"/> <column name="ID" value="3"/>
<column name="AUTHOR" value="flowable"/> <column name="AUTHOR" value="flowable"/>
<column name="FILENAME" value="META-INF/liquibase/flowable-modeler-app-db-changelog.xml"/> <column name="FILENAME" value="META-INF/liquibase/flowable-modeler-app-db-changelog.xml"/>
<column name="DATEEXECUTED" valueDate="2019-10-23T20:40:17"/>
<column name="ORDEREXECUTED" value="2"/> <column name="ORDEREXECUTED" value="2"/>
<column name="EXECTYPE" value="EXECUTED"/> <column name="EXECTYPE" value="EXECUTED"/>
<column name="MD5SUM" value="8:3a9143bef2e45f2316231cc1369138b6"/> <column name="MD5SUM" value="8:3a9143bef2e45f2316231cc1369138b6"/>
...@@ -109,12 +115,18 @@ ...@@ -109,12 +115,18 @@
<column name="LABELS"/> <column name="LABELS"/>
<column name="DEPLOYMENT_ID" value="9219494793"/> <column name="DEPLOYMENT_ID" value="9219494793"/>
</insert> </insert>
<insert tableName="ACT_DE_DATABASECHANGELOGLOCK"> <insert tableName="ACT_DE_DATABASECHANGELOGLOCK" dbms="mysql,h2,oracle">
<column name="ID" value="1"/> <column name="ID" value="1"/>
<column name="LOCKED" valueBoolean="false"/> <column name="LOCKED" valueBoolean="false"/>
<column name="LOCKGRANTED"/> <column name="LOCKGRANTED"/>
<column name="LOCKEDBY"/> <column name="LOCKEDBY"/>
</insert> </insert>
<insert tableName="ACT_DE_DATABASECHANGELOGLOCK" dbms="postgresql">
<column name="ID" value="1"/>
<column name="LOCKED" value="0"/>
<column name="LOCKGRANTED"/>
<column name="LOCKEDBY"/>
</insert>
</changeSet> </changeSet>
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册