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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_TPO_TABLE_CONFIG') CREATE  CLUSTERED INDEX IDX_T_TPO_TABLE_CONFIG ON T_TPO_TABLE_CONFIG ( FTEXTFIELD ,FSUBNAME );


 EXEC P_ALTERPK 'PK_TPO_TABLE_CONFIG_ENTRY', 'T_TPO_TABLE_CONFIG_ENTRY', 'FENTRYID', '0';

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



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