/** T_ER_REPAYMENTENTRY_LK 表字段 FENTRYID 创建索引 **/
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_REPAYMENTENTRY_LK_ENTRYID') CREATE INDEX IDX_REPAYMENTENTRY_LK_ENTRYID ON T_ER_REPAYMENTENTRY_LK ( FENTRYID );

/** T_ER_REPAYRECENTRY补充主键 **/
EXEC P_ALTERPK 'PK_T_ER_REPAYRECENTRY', 'T_ER_REPAYRECENTRY', 'FENTRYID', '1';