/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_MERGEMETHOD', 'T_BCM_MERGEMETHOD', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_MERGEMETHOD_NUM') CREATE INDEX IDX_BCM_MERGEMETHOD_NUM ON T_BCM_MERGEMETHOD ( FNUMBER );


 EXEC P_ALTERPK 'PK_T_BCM_MERGEMETHOD_L', 'T_BCM_MERGEMETHOD_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_MERGEMETHOD_L') CREATE INDEX IDX_BCM_MERGEMETHOD_L ON T_BCM_MERGEMETHOD_L ( FID );


 EXEC P_ALTERPK 'PK_T_BCM_MERGESTRUCTINFO', 'T_BCM_MERGESTRUCTINFO', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_MERGESTRUCTINFO_QUERY') CREATE INDEX IDX_BCM_MERGESTRUCTINFO_QUERY ON T_BCM_MERGESTRUCTINFO ( FMODELID ,FSCENARIOID ,FYEARID ,FPERIODID );



/**End D:\PDM\PDM_UPGRADE\pdm1\BCM_constraint.sql **/
