## 调整创建语句结构;
This commit is contained in:
parent
ae133ef950
commit
1ff34e7da2
|
@ -241,9 +241,7 @@
|
|||
<sql id="CuMemberTableTrig">
|
||||
CREATE
|
||||
OR REPLACE TRIGGER
|
||||
${tableName}
|
||||
_
|
||||
TRIG
|
||||
${tableName}_TRIG
|
||||
BEFORE
|
||||
INSERT
|
||||
OR
|
||||
|
@ -417,57 +415,23 @@
|
|||
</update>
|
||||
|
||||
<update id="createCuMemberTreeParentIndex">
|
||||
create
|
||||
index
|
||||
${tableName}
|
||||
_
|
||||
parent
|
||||
on
|
||||
${tableName}
|
||||
(
|
||||
pk_parent
|
||||
)
|
||||
create index ${tableName}_parent
|
||||
on ${tableName} ( pk_parent )
|
||||
</update>
|
||||
|
||||
<update id="createCuMemberTreePlaceIndex">
|
||||
create
|
||||
index
|
||||
${tableName}
|
||||
_
|
||||
place
|
||||
on
|
||||
${tableName}
|
||||
(
|
||||
pk_place_parent,
|
||||
place_dept
|
||||
)
|
||||
create index ${tableName}_place
|
||||
on ${tableName} ( pk_place_parent, place_dept )
|
||||
</update>
|
||||
|
||||
<update id="createCuMemberTableUniqueIndex">
|
||||
create
|
||||
unique index
|
||||
${tableName}
|
||||
_
|
||||
PK_M
|
||||
on
|
||||
${tableName}
|
||||
(
|
||||
PK_MEMBER,
|
||||
period
|
||||
)
|
||||
create unique index ${tableName}_PK_M
|
||||
on ${tableName} ( PK_MEMBER, period )
|
||||
</update>
|
||||
|
||||
<update id="createCuMemberTreeDayOnlyIndex">
|
||||
create
|
||||
unique index
|
||||
${tableName}
|
||||
_
|
||||
PK_M
|
||||
on
|
||||
${tableName}
|
||||
(
|
||||
PK_MEMBER
|
||||
)
|
||||
create unique index
|
||||
${tableName}_PK_M on ${tableName} ( PK_MEMBER )
|
||||
</update>
|
||||
|
||||
<update id="updateCuMemberTreeByCancelOrder">
|
||||
|
|
Loading…
Reference in New Issue