/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TPO_constraint.sql **/
 EXEC P_ALTERPK 'PK_TPO_TDZZS_TAXRATE', 'T_TPO_TDZZS_TAXRATE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_TPO_TDZZS_TAXRATE_1') CREATE UNIQUE INDEX IDX_T_TPO_TDZZS_TAXRATE_1 ON T_TPO_TDZZS_TAXRATE ( FNUMBER );


 EXEC P_ALTERPK 'PK_TPO_TDZZS_TAXRATE_L', 'T_TPO_TDZZS_TAXRATE_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_TPO_TDZZS_TAXRATEENTRY', 'T_TPO_TDZZS_TAXRATEENTRY', 'FENTRYID', '1';

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



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