/**Begin D:\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_MENUUPGRADE', 'T_BCM_MENUUPGRADE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_MENUUPGRADE') CREATE INDEX IDX_BCM_MENUUPGRADE ON T_BCM_MENUUPGRADE ( FUSER );


 EXEC P_ALTERPK 'PK_T_BCM_INVSHARERELA_RPT', 'T_BCM_INVSHARERELA_RPT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_INVSRRPT_MI') CREATE INDEX IDX_BCM_INVSRRPT_MI ON T_BCM_INVSHARERELA_RPT ( FMODELID ,FINVESTEECOMPANYID );


 EXEC P_ALTERPK 'PK_T_BCM_INVSHARERELA_RPT_L', 'T_BCM_INVSHARERELA_RPT_L', 'FPKID', '1';

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



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