/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\ER_constraint.sql **/
/* 额度扩展配置表主键 */
 EXEC P_ALTERPK 'PK_T_ER_EXTAMOUNTQUERY', 'T_ER_EXTAMOUNTQUERY', 'FID', '1';
 /* 额度扩展配置表索引 */
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EXTAMOUNTQUERY_FNUMBER') CREATE INDEX IDX_EXTAMOUNTQUERY_FNUMBER ON T_ER_EXTAMOUNTQUERY ( FNUMBER );

/* 额度扩展配置多语言表主键 */
 EXEC P_ALTERPK 'PK_T_ER_EXTAMOUNTQUERY_L', 'T_ER_EXTAMOUNTQUERY_L', 'FPKID', '1';
/* 额度扩展配置多语言表索引 */
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EXTAMOUNTQUERY_L_FID') CREATE INDEX IDX_EXTAMOUNTQUERY_L_FID ON T_ER_EXTAMOUNTQUERY_L ( FID );

/* 额度扩展配置分录表主键 */
 EXEC P_ALTERPK 'PK_T_ER_EXTAMOUNTQUERYENTRY', 'T_ER_EXTAMOUNTQUERYENTRY', 'FENTRYID', '1';
/* 额度扩展配置分录表索引 */
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EXTAMOUNTQUERYENTRY_FID') CREATE INDEX IDX_EXTAMOUNTQUERYENTRY_FID ON T_ER_EXTAMOUNTQUERYENTRY ( FID );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\ER_constraint.sql **/
