/**Begin D:\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_CARRYSETTING', 'T_BCM_CARRYSETTING', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_RULECONFIGLOGIC', 'T_BCM_RULECONFIGLOGIC', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_RULECONFIGLOGIC_L', 'T_BCM_RULECONFIGLOGIC_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_RULECFGLOGIC_L') CREATE INDEX IDX_BCM_RULECFGLOGIC_L ON T_BCM_RULECONFIGLOGIC_L ( FENTRYID ,FLOCALEID );



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