/**Begin D:\PDM_UPGRADE\PDM1\HAOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HAOS_CUSTOMOTSORT_L', 'T_HAOS_CUSTOMOTSORT_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HAOS_STRUCTPROENTRY_L', 'T_HAOS_STRUCTPROENTRY_L', 'FPKID', '1';

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



/**End D:\PDM_UPGRADE\PDM1\HAOS_constraint.sql **/
