/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCTB_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCTB_DEDUCTION_RATE', 'T_TCTB_DEDUCTION_RATE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_DEDUCTION_FORGID') CREATE INDEX IDX_DEDUCTION_FORGID ON T_TCTB_DEDUCTION_RATE ( FORGID );


 EXEC P_ALTERPK 'PK_TCTB_DEDUCTION_RATE_L', 'T_TCTB_DEDUCTION_RATE_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_TCTB_TAX_MAINTENANCE', 'T_TCTB_TAX_MAINTENANCE', 'FENTRYID', '1';

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



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