/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCTB_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCTB_BUSINESS_DIMENSION', 'T_TCTB_BUSINESS_DIMENSION', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TCTB_BUSINESS_DIMENSION' AND KSQL_INDNAME = 'IDX_TCTB_BUSINESS_DIMENSION_FK') CREATE INDEX IDX_TCTB_BUSINESS_DIMENSION_FK ON T_TCTB_BUSINESS_DIMENSION ( FID );


 EXEC P_ALTERPK 'PK_TCTB_TAXES_ENTRY', 'T_TCTB_TAXES_ENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_TCTB_TAXES_ENTRY' AND KSQL_INDNAME = 'IDX_TCTB_TAXES_ENTRY_FK') CREATE INDEX IDX_TCTB_TAXES_ENTRY_FK ON T_TCTB_TAXES_ENTRY ( FID );



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