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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_INTRADJSET') CREATE INDEX IDX_BCM_INTRADJSET ON T_BCM_INTRADJSET ( FTEMPLATEID ,FMODELID ,FSCENARIOID );


 EXEC P_ALTERPK 'PK_T_BCM_INTRADJSET_L', 'T_BCM_INTRADJSET_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_INTRADJSETENTRY', 'T_BCM_INTRADJSETENTRY', 'FENTRYID', '1';

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



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