/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_BATCHCHILDCONFIGSET', 'T_BCM_BATCHCHILDCONFIGSET', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BCM_BCSC_FCHILDNUMBER') CREATE INDEX IDX_T_BCM_BCSC_FCHILDNUMBER ON T_BCM_BATCHCHILDCONFIGSET ( FCHILDNUMBER );


 EXEC P_ALTERPK 'PK_T_BCM_BATCHCONFIGSETTING', 'T_BCM_BATCHCONFIGSETTING', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_BATCHCONFIGSETTING_L', 'T_BCM_BATCHCONFIGSETTING_L', 'FPKID', '1';

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



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