提交 3e380c3c 编写于 作者: ibiz4j's avatar ibiz4j

更新 h2_table.xml.ftl

上级 d2f7705d
...@@ -28,7 +28,7 @@ TARGET=PSSYSTEM ...@@ -28,7 +28,7 @@ TARGET=PSSYSTEM
<#assign deName=de.getName()?lower_case> <#assign deName=de.getName()?lower_case>
<#comment>输出表结构</#comment> <#comment>输出表结构</#comment>
<#if !P.exists("table_",de.getTableName(),"") && bPubDb==true> <#if !P.exists("table_",de.getTableName(),"") && bPubDb==true>
<changeSet author="<#if dbinst.getUserName()??>${dbinst.getUserName()}<#else>root</#if>" id="tab-${deName}-${deVersion}-${sequenceNumber}"> <changeSet author="<#if dbinst?? && dbinst.getUserName()??>${dbinst.getUserName()}<#else>root</#if>" id="tab-${deName}-${deVersion}-${sequenceNumber}">
<createTable tableName="${de.getTableName()}"> <createTable tableName="${de.getTableName()}">
<#list de.getAllPSDEFields() as defield> <#list de.getAllPSDEFields() as defield>
<#if defield.isPhisicalDEField()==true><#comment>物理属性</#comment> <#if defield.isPhisicalDEField()==true><#comment>物理属性</#comment>
...@@ -92,7 +92,7 @@ TARGET=PSSYSTEM ...@@ -92,7 +92,7 @@ TARGET=PSSYSTEM
<#assign fkConstraintName=fkConstraintName?substring(0,30)> <#assign fkConstraintName=fkConstraintName?substring(0,30)>
</#if> </#if>
<#if !P.exists("fk_",fkConstraintName,"") && bPubDb==true> <#if !P.exists("fk_",fkConstraintName,"") && bPubDb==true>
<changeSet author="<#if dbinst.getUserName()??>${dbinst.getUserName()}<#else>root</#if>" id="fk-${deName}-${deVersion}-${sequenceNumber}"> <changeSet author="<#if dbinst?? && dbinst.getUserName()??>${dbinst.getUserName()}<#else>root</#if>" id="fk-${deName}-${deVersion}-${sequenceNumber}">
<addForeignKeyConstraint baseColumnNames="${fk.getPSPickupDEField().getName()}" baseTableName="${de.getTableName()}" constraintName="${fkConstraintName}" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="${fk.getMajorPSDataEntity().getKeyPSDEField().getName()}" referencedTableName="${fk.getMajorPSDataEntity().getTableName()}" validate="true"/> <addForeignKeyConstraint baseColumnNames="${fk.getPSPickupDEField().getName()}" baseTableName="${de.getTableName()}" constraintName="${fkConstraintName}" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="${fk.getMajorPSDataEntity().getKeyPSDEField().getName()}" referencedTableName="${fk.getMajorPSDataEntity().getTableName()}" validate="true"/>
</changeSet> </changeSet>
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册