/**Begin D:\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_DPROPERTY_L', 'T_BCM_DPROPERTY_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_DPROPERTYVALUE_L', 'T_BCM_DPROPERTYVALUE_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_ENUMVALUE_L', 'T_BCM_ENUMVALUE_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_ENUMITEM_L', 'T_BCM_ENUMITEM_L', 'FPKID', '1';

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



/**End D:\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
