/**Begin D:\PDM_UPGRADE\PDM_NEW\BOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_ORG_ORGNH', 'T_ORG_ORGNH', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_ORG_ORGNH_L', 'T_ORG_ORGNH_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_ORG_ORGNH_L') CREATE INDEX IDX_T_ORG_ORGNH_L ON T_ORG_ORGNH_L ( FENTRYID ,FLOCALEID );



/**End D:\PDM_UPGRADE\PDM_NEW\BOS_constraint.sql **/
