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

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


 EXEC P_ALTERPK 'PK_T_BCM_UPGRADEDMODEL', 'T_BCM_UPGRADEDMODEL', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_UPGRADESTATUS', 'T_BCM_UPGRADESTATUS', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_UPGRADESTATUS_MNUM') CREATE INDEX IDX_BCM_UPGRADESTATUS_MNUM ON T_BCM_UPGRADESTATUS ( FMODELID ,FNUMBER );



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