## 调整创建语句结构;

This commit is contained in:
cabbage 2025-04-12 09:09:15 +08:00
parent ae133ef950
commit 1ff34e7da2
1 changed files with 9 additions and 45 deletions

View File

@ -241,9 +241,7 @@
<sql id="CuMemberTableTrig"> <sql id="CuMemberTableTrig">
CREATE CREATE
OR REPLACE TRIGGER OR REPLACE TRIGGER
${tableName} ${tableName}_TRIG
_
TRIG
BEFORE BEFORE
INSERT INSERT
OR OR
@ -417,57 +415,23 @@
</update> </update>
<update id="createCuMemberTreeParentIndex"> <update id="createCuMemberTreeParentIndex">
create create index ${tableName}_parent
index on ${tableName} ( pk_parent )
${tableName}
_
parent
on
${tableName}
(
pk_parent
)
</update> </update>
<update id="createCuMemberTreePlaceIndex"> <update id="createCuMemberTreePlaceIndex">
create create index ${tableName}_place
index on ${tableName} ( pk_place_parent, place_dept )
${tableName}
_
place
on
${tableName}
(
pk_place_parent,
place_dept
)
</update> </update>
<update id="createCuMemberTableUniqueIndex"> <update id="createCuMemberTableUniqueIndex">
create create unique index ${tableName}_PK_M
unique index on ${tableName} ( PK_MEMBER, period )
${tableName}
_
PK_M
on
${tableName}
(
PK_MEMBER,
period
)
</update> </update>
<update id="createCuMemberTreeDayOnlyIndex"> <update id="createCuMemberTreeDayOnlyIndex">
create create unique index
unique index ${tableName}_PK_M on ${tableName} ( PK_MEMBER )
${tableName}
_
PK_M
on
${tableName}
(
PK_MEMBER
)
</update> </update>
<update id="updateCuMemberTreeByCancelOrder"> <update id="updateCuMemberTreeByCancelOrder">