/**Begin D:\PDM_UPGRADE\PDM1\TM_constraint.sql **/
-- 补充遗漏的主键
 EXEC P_ALTERPK 'PK_T_TM_TRADE_RWC', 'T_TM_TRADE_RWC', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_TM_TRADE_PWC', 'T_TM_TRADE_PWC', 'FPKID', '1';

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


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