/**Begin D:\softwaresetup\PDM_UPGRADE\PDM1\BEI_constraint.sql **/
EXEC p_DropIdx 'IDX_BEI_COMPANY_DATE', 'T_BEI_TRANSDETAIL';
 EXEC P_ALTERPK 'PK_T_BEI_UPDATAINFODETAIL', 'T_BEI_UPDATAINFODETAIL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_UPDATAINFODETAIL_TID') CREATE INDEX IDX_BEI_UPDATAINFODETAIL_TID ON T_BEI_UPDATAINFODETAIL ( FTRANSDETAILID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_UPDATAINFODETAIL_RR') CREATE INDEX IDX_BEI_UPDATAINFODETAIL_RR ON T_BEI_UPDATAINFODETAIL ( FRECEDBILLTYPE ,FRECEDBILLID );


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