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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_BANKLOG_H') CREATE INDEX IDX_BEI_BANKLOG_H ON T_BEI_BANKLOG_H ( FCOMPANYID ,FTIME ,FISEXCEPTION );


 EXEC P_ALTERPK 'PK_T_BEI_BANKLOG_H_L', 'T_BEI_BANKLOG_H_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_BANKLOG_H_L') CREATE INDEX IDX_BEI_BANKLOG_H_L ON T_BEI_BANKLOG_H_L ( FID ,FLOCALEID ,FCOMMENT );



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