/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TPO_constraint.sql **/
 EXEC P_ALTERPK 'PK_TPO_RULE_CONFIGS', 'T_TPO_RULE_CONFIGS', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TPO_RULE_CONFIGS') CREATE  CLUSTERED INDEX IDX_TPO_RULE_CONFIGS ON T_TPO_RULE_CONFIGS ( FBIZNAME ,FNAME );


 EXEC P_ALTERPK 'PK_TPO_RULE_CONFIGS_ENTRY', 'T_TPO_RULE_CONFIGS_ENTRY', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TPO_RULE_CONFIGS_ENTRY_FK') CREATE  CLUSTERED INDEX IDX_TPO_RULE_CONFIGS_ENTRY_FK ON T_TPO_RULE_CONFIGS_ENTRY ( FID );



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