/**Begin D:\PDM_UPGRADE\PDM1\TM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_TM_COMBTRADE', 'T_TM_COMBTRADE', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TM_COMBTRADE') CREATE  CLUSTERED INDEX IDX_TM_COMBTRADE ON T_TM_COMBTRADE ( FBILLNO );


 EXEC P_ALTERPK 'PK_T_TM_COMBTRADE_INFO', 'T_TM_COMBTRADE_INFO', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TM_COMBTRADE_INFO') CREATE UNIQUE  CLUSTERED INDEX IDX_TM_COMBTRADE_INFO ON T_TM_COMBTRADE_INFO ( FID );


EXEC p_AlterPK 'PK_T_TM_COMBTRADE_ORG', 'T_TM_COMBTRADE_ORG', 'fpkid', '0';

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


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