/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BASE_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BD_GROUPSTANDARDSET', 'T_BD_GROUPSTANDARDSET', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BD_GROUPSTANDARDSET' AND KSQL_INDNAME = 'IDX_BD_GROUPSTANDARDSET_OBJ') CREATE INDEX IDX_BD_GROUPSTANDARDSET_OBJ ON T_BD_GROUPSTANDARDSET ( FOBJECT );


 EXEC P_ALTERPK 'PK_T_BD_GROUPSTANDARDSET_L', 'T_BD_GROUPSTANDARDSET_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BD_GROUPSTANDARDSET_L' AND KSQL_INDNAME = 'IDX_T_BD_GROUPSTANDARDSET_LFID') CREATE INDEX IDX_T_BD_GROUPSTANDARDSET_LFID ON T_BD_GROUPSTANDARDSET_L ( FID ,FLOCALEID );



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