/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_ADJBIZTYPECFG', 'T_BCM_ADJBIZTYPECFG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_ADJBIZTYPECFG_MODEL') CREATE INDEX IDX_BCM_ADJBIZTYPECFG_MODEL ON T_BCM_ADJBIZTYPECFG ( FMODELID );


 EXEC P_ALTERPK 'PK_T_BCM_ADJBIZTYPECFG_L', 'T_BCM_ADJBIZTYPECFG_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_ADJBIZTYPECFGENTRY', 'T_BCM_ADJBIZTYPECFGENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_ADJBIZTYPECFGENTRY_L', 'T_BCM_ADJBIZTYPECFGENTRY_L', 'FPKID', '1';

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



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BCM_constraint.sql **/
