/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TSRBD_constraint.sql **/
EXEC p_DropIdx 'IDX_TSRBD_FID', 'T_TSRBD_INTVERTYPE_L';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TSRBD_INTVERTYPE1') CREATE INDEX IDX_TSRBD_INTVERTYPE1 ON T_TSRBD_INTVERTYPE_L ( FID ,FLOCALEID );

 EXEC P_ALTERPK 'PK_TSRBD_INTVERCAT', 'T_TSRBD_INTVERCAT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TSRBD_INTVERCAT_FNUMBER') CREATE INDEX IDX_TSRBD_INTVERCAT_FNUMBER ON T_TSRBD_INTVERCAT ( FNUMBER );


 EXEC P_ALTERPK 'PK_TSRBD_INTVERCAT_L', 'T_TSRBD_INTVERCAT_L', 'FPKID', '1';

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



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