/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PUR_constraint.sql **/

 EXEC P_ALTERPK 'PK_PUR_INDEX_CATEGORY', 'T_PUR_INDEX_CATEGORY', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PUR_INDEX_CATEGORY_FID') CREATE INDEX IDX_PUR_INDEX_CATEGORY_FID ON T_PUR_INDEX_CATEGORY ( FID ,FBASEDATAID );


 EXEC P_ALTERPK 'PK_PUR_INDEX_ORG', 'T_PUR_INDEX_ORG', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PUR_INDEX_ORG_FID') CREATE INDEX IDX_PUR_INDEX_ORG_FID ON T_PUR_INDEX_ORG ( FID ,FBASEDATAID );



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