/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BASE_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BAS_COSTCENTERNH', 'T_BAS_COSTCENTERNH', 'FENTRYID', '1';

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

 EXEC P_ALTERPK 'PK_T_BAS_COSTCENTERNH_L_ID', 'T_BAS_COSTCENTERNH_L', 'FPKID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BAS_COSTCENTERNH_L') CREATE INDEX IDX_T_BAS_COSTCENTERNH_L ON T_BAS_COSTCENTERNH_L ( FENTRYID ,FLOCALEID );
/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BASE_constraint.sql **/
