/**Begin D:\cgq\develop\document\dba\PDMTOOLS\PDMTOOLS\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\TPO_constraint.sql **/
 EXEC P_ALTERPK 'PK_TPO_DOWNLOAD_HISTORY', 'T_TPO_DOWNLOAD_HISTORY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_TPO_DOWN_HISY_FNUMBER') CREATE INDEX IDX_T_TPO_DOWN_HISY_FNUMBER ON T_TPO_DOWNLOAD_HISTORY ( FNUMBER );


 EXEC P_ALTERPK 'PK_TPO_RULE', 'T_TPO_RULE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_TPO_RULE_FNUMBER') CREATE INDEX IDX_T_TPO_RULE_FNUMBER ON T_TPO_RULE ( FNUMBER );


 
 
 EXEC P_ALTERPK 'PK_TPO_RULE_L', 'T_TPO_RULE_L', 'FPKID', '1';

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



/**End D:\cgq\develop\document\dba\PDMTOOLS\PDMTOOLS\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\TPO_constraint.sql **/
