/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCTB_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCTB_APITUDEINFO', 'T_TCTB_APITUDEINFO', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCTB_APITUDEINFO_FK') CREATE  CLUSTERED INDEX IDX_TCTB_APITUDEINFO_FK ON T_TCTB_APITUDEINFO ( FID );


 EXEC P_ALTERPK 'PK_TCTB_CATEGORYINFO', 'T_TCTB_CATEGORYINFO', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCTB_CATEGORYINFO_FK') CREATE  CLUSTERED INDEX IDX_TCTB_CATEGORYINFO_FK ON T_TCTB_CATEGORYINFO ( FID );


 EXEC P_ALTERPK 'PK_TCTB_TAX_MAIN', 'T_TCTB_TAX_MAIN', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCTB_TAX_MAIN') CREATE  CLUSTERED INDEX IDX_TCTB_TAX_MAIN ON T_TCTB_TAX_MAIN ( FORGID );



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