## 调整创建语句结构;

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">
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">