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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_INVSRPT_CSYP') CREATE INDEX IDX_BCM_INVSRPT_CSYP ON T_BCM_INVSTRUCTUREREPORT ( FCSLSCHEMEID ,FSCENARIOID ,FYEARID ,FPERIODID );


 EXEC P_ALTERPK 'PK_T_BCM_INVSTRUCTUREENTRY', 'T_BCM_INVSTRUCTUREENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_INVSENT_S') CREATE INDEX IDX_BCM_INVSENT_S ON T_BCM_INVSTRUCTUREENTRY ( FSHAREHOLDER );



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