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

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


 EXEC P_ALTERPK 'PK_TCTB_TAXPOINT_L', 'T_TCTB_TAXPOINT_L', 'FPKID', '1';

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




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