/**Begin D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_BDM_ORG_L', 'T_BDM_ORG_L', 'FPKID', '0';

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


 EXEC P_ALTERPK 'PK_T_BDM_ORG_R3', 'T_BDM_ORG_R3', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_ORG_R3') CREATE  CLUSTERED INDEX IDX_BDM_ORG_R3 ON T_BDM_ORG_R3 ( FREFSTATUS );



/**End D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
