/**Begin D:\PDM_UPGRADE\PDM1\BEI_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BEI_TRANSDETAIL_FILEREG', 'T_BEI_TRANSDETAIL_FILEREG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_TRANSDFILEREG_RID') CREATE INDEX IDX_BEI_TRANSDFILEREG_RID ON T_BEI_TRANSDETAIL_FILEREG ( FREQUESTID );


 EXEC P_ALTERPK 'PK_T_BEI_TRANSDETAILFR_ENTRY', 'T_BEI_TRANSDETAILFR_ENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_TRANSDETAILFR_ENTRY') CREATE INDEX IDX_BEI_TRANSDETAILFR_ENTRY ON T_BEI_TRANSDETAILFR_ENTRY ( FID );


 EXEC P_ALTERPK 'PK_T_BEI_TRANSDETAIL_FLOG', 'T_BEI_TRANSDETAIL_FLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_TRANSDFILELOG_NO') CREATE INDEX IDX_BEI_TRANSDFILELOG_NO ON T_BEI_TRANSDETAIL_FLOG ( FBILLNO );



/**End D:\PDM_UPGRADE\PDM1\BEI_constraint.sql **/
